Skip to content

Instantly share code, notes, and snippets.

@ymattu
Last active February 6, 2016 10:56
Show Gist options
  • Select an option

  • Save ymattu/b12d2e4ce3434f549940 to your computer and use it in GitHub Desktop.

Select an option

Save ymattu/b12d2e4ce3434f549940 to your computer and use it in GitHub Desktop.
IMLで作った行列をSASデータセットにする
proc iml;
x = {1,0,3,2,0,3}; /* 6 × 1 ベクトル */
y = {8,7,6,5,6}; /* 5 × 1 ベクトル */
z = {A A A B B B}; /* 1 × 6 ベクトル */
create DATA1 var {x y z}; /* データセットを作る */
append; /* データをベクトルの中に入れる */
close DATA1; /* データセットを閉じる */
quit;
proc print data=DATA1;
run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment