I am doing a permutation test and i have gone as far as getting difference of the means using proc ttest. My next step is proc iml and thats where am stuck. i keep getting the following error message on the log: 106 ods output off; 107 ods exclude all; 108 *borrowed code from internet ... randomizes observations and creates a matrix ... one row per randomization ; 109 proc iml; NOTE: IML Ready 110 use pocketcash; 110 ! * change data set name here to match your data set name above; 111 read all var{school cash} into x; WARNING: Variable cash excluded because of type mismatch with x. 111 ! *change varibale names here ... make sure it is class then var ... in that order.; 112 p = t(ranperm(x[,2],1000)); ERROR: (execution) Invalid subscript or subscript out of range. operation : [ at line 112 column 17 operands : x, , *LIT1002 x 30 rows 1 col (character, size 😎 *LIT1002 1 row 1 col (numeric) What am i doing wrong? thanks
... View more