I have two matrices [A ] and {1,2,3} basically I need to combine the matrix that looks like {A1 A2 A3.
B B1 B2 B3
[C] C1 C2 C3}
The first matrix is for treatments(A,B,C) and the second matrix is for the age factor(1,2,3).
The resulting matrix will be used to check for imbalance between the treatments and age factor.
I used the code below where basically tired to merge the two matrices:
proc iml;
M1={A,
B,
C};
M2={1 2 3};
nNames="B1":"B3";
cNames="A1":"A3";
create ndat from M1[colname=nNames];
append from M1;
create cdat from M2[colname=cNames];
append from M2;
quit;
data dat;
merge ndat cdat;
run;
This didn't really work as I still need to form a combination of two matrices. Any help will be appreciated. Thank you.