BookmarkSubscribeRSS Feed
Ashleeva
Calcite | Level 5

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;

1 REPLY 1
Rick_SAS
SAS Super FREQ

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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1614 views
  • 0 likes
  • 2 in conversation