BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
rjinks
Obsidian | Level 7
90 proc factor data=Ssampahan method=m1 heywood n=2;
__
22
76
ERROR 22-322: Syntax error, expecting one of the following: ALPHA, HARRIS, IMAGE, ML, PATTERN, PRINCIPAL, PRINIT, SCORE, ULS.
ERROR 76-322: Syntax error, statement will be ignored.
91 title3 `Maximum Likelihood Factor Analysis with Three Factor`;
 
 
I keep getting this error message from this line which is repeated. Are there in solutions to this problem?
1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

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.

View solution in original post

6 REPLIES 6
SASKiwi
PROC Star

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.

FreelanceReinh
Jade | Level 19

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.

rjinks
Obsidian | Level 7

That did. Thank you

rjinks
Obsidian | Level 7

Excuse me. That was my error m1 should have been ml. Thank you.

rjinks
Obsidian | Level 7
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;
WarrenKuhfeld
Ammonite | Level 13

Independent of your question, add RUN statements. TITLE statements do not work the way you seem to think they do.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 1061 views
  • 1 like
  • 4 in conversation