Hi @rjinks,
I think the "m1" in the METHOD= option is the culprit, which should read "ml" -- for maximum likelihood -- or simply "m" (see documentation). Using uppercase (ML) is also possible.
My guess is you have a missing semicolon earlier in your program. If you want us to find it for you, please post your complete program log not just the statements where the error is.
Hi @rjinks,
I think the "m1" in the METHOD= option is the culprit, which should read "ml" -- for maximum likelihood -- or simply "m" (see documentation). Using uppercase (ML) is also possible.
That did. Thank you
Excuse me. That was my error m1 should have been ml. Thank you.
Datalines;
LC 0 0 0.024266667 0.015533333 0.02602 0.008633333 0.010333333 0.017233333 0 0.006366667 0.041333333 0.016933333 0.023333333 0.053833333
SK1 0.004966667 0.004966667 0.0078 0.005666667 0.008533333 0 0 0.0078 0 0 0.003566667 0.003566667 0.008593333 0.027133333
WR1 0.0042 0.0077 0.04 0.0175 0.02539 0.0063 0.0091 0.0224 0 0 0 0.0091 0.018216667 0.093156667
WR2 0 0 0.00595 0.00595 0.011833333 0.0042 0.00345 0.005326667 0.002176667 0 0 0.003733333 0.006066667 0.013743333
PI 0 0 0 0 0 0 0 0 0 0 0 0 0.006003333 0
;
title3 'Maximum Likelihood Factor Analysis with One Factor';
proc factor data=SsamPAHan method=m1 heywood n=1;
title3 'Maximum Likelihood Factor Analysis with Two Factor';
proc factor data=SsamPAHan method=m1 heywood n=2;
title3 'Maximum Likelihood Factor Analysis with Three Factor';
proc factor data=SsamPAHan method=m1 heywood n=3;
Independent of your question, add RUN statements. TITLE statements do not work the way you seem to think they do.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.