Thank you for your prompt reply. A few questions: For the following line y1=j(&nobs,ncol(x),nleng(y)); I am assuming it is meant to be ncol(y) instead of ncol(x) Furthermore, for the following lines of code: do j=1 to ncol(y);
y1[,j]=t(sample(y[,j],&nobs));
end; I don't see any problem with it but SAS Studio is throwing an error ERROR: (execution) Invalid argument to function. operation : [ at line 104 column 18 operands : y1, , j, _TEM1003
... View more