Learning SAS? Welcome to the exclusive online community for all SAS learners.

ERROR: (execution) Matrix has not been set to a value.

Reply
Regular Learner
Posts: 1

ERROR: (execution) Matrix has not been set to a value.

Hello, i am newbie in sas university edition. can everybody help me? i wanna print correlation robust mve from the data but when i running this syntax, there's some error. can i get the solution, please? this is a half of my syntax :

 

proc iml;
reset noprint;
use SKRIPSI.DATA;
read all into X0;
  n=nrow(X0);
  p=ncol(X0);
  sum=X0[+,];
  xpx = t(X0)*X0-t(sum)*sum/n;
  s = diag(1/sqrt(vecdiag(xpx)));
  corr = s*xpx*s; /*korelasi klasik*/
print corr;
  optn = j[8,1];
  optn[1]=3;
  optn[2]=1; /*pcov: print cov*/
  optn[3]=1; /*pcor: print cor*/
 call mve (sc, xmve, dist, opt, X0);

 

/*and i get the result like this :*/

 

NOTE: IML Ready
74 reset noprint;
75 use SKRIPSI.DATA;
76 read all into X0;
77 n=nrow(X0);
78 p=ncol(X0);
79 sum=X0[+,];
80 xpx = t(X0)*X0-t(sum)*sum/n;
81 s = diag(1/sqrt(vecdiag(xpx)));
82 corr = s*xpx*s;
82 ! /*korelasi klasik*/
83 print corr;
84 optn = j[8,1];
ERROR: (execution) Matrix has not been set to a value.
 
operation : [ at line 84 column 11
operands : j, *LIT1002, *LIT1003

 

please help me with the solution. thankyou.

 
 

 

Ask a Question
Discussion stats
  • 0 replies
  • 310 views
  • 0 likes
  • 1 in conversation