Programming the statistical procedures from SAS

Error - PROC Calis - Expecting a Name

Reply
Occasional Learner
Posts: 1

Error - PROC Calis - Expecting a Name

Hello - I am trying to run a PROC Calis statement and based on the example code I've found - it looks like my syntax is correct but I keep getting an error message and it looks like its coming up after the e4,; but when I try to change any of that the model will still not run. Any insight woudl be very useful. 

Thank you. 

 

proc calis data=n905.momps_Final mod method = fiml nostand noparmname;
label H1='YHEA-100_1997'n H2 = 'YHEA-100_1998'n H3 = 'YHEA-100_1999'n H4 = 'YHEA-100_2000'n;
lineqs
H1 = 0*intercept + f_alpha + 0*f_beta + e1,
H2 = 0*intercept + f_alpha + 1*f_beta + e2,
H3 = 0*intercept + f_alpha + 2*f_beta + e3,
H4 = 0*intercept + f_alpha + 3*f_beta + e4,;
variance
f_alpha f_beta,
e1-e4 = 4 * evar;
mean
f_alpha f_beta;
cov
f_alpha f_beta;
fitindex on(only)=[chisq df probchi];
run;

SAS Super FREQ
Posts: 3,554

Re: Error - PROC Calis - Expecting a Name

Try deleting the comma at the end of the H4 line, just before the semicolon.

Ask a Question
Discussion stats
  • 1 reply
  • 181 views
  • 0 likes
  • 2 in conversation