*borrowed code from internet ... randomizes observations and creates a matrix ... one row per randomization ; proc iml; use pocketcash; * change data set name here to match your data set name above; read all var{school cash} into x; *change varibale names here ... make sure it is class then var ... in that order.; p = t(ranperm(X[,2],1000)); *Note that the "1000" here is the number of permutations. ; paf = x[,1]||p; create newds from paf; append from paf; quit; Not sure why its posting with the breaks but i hope it makes sence to you,
... View more