i downloaded and installed the externel program PROC LCA from the PennState University. I tried to run the test code provided by the developers:
DATA test;
INPUT it1 it2 it3 it4 count;
DATALINES;
1 1 1 1 5
1 1 1 2 5
1 1 2 1 9
1 1 2 2 8
1 2 1 2 5
1 2 2 1 8
1 2 2 2 4
2 1 1 1 5
2 1 1 2 3
2 1 2 1 6
2 1 2 2 8
2 2 1 1 3
2 2 1 2 7
2 2 2 1 5
2 2 2 2 10
;
RUN;
PROC LCA DATA=test;
NCLASS 2;
ITEMS it1 it2 it3 it4;
CATEGORIES 2 2 2 2;
FREQ count;
SEED 100000;
RHO PRIOR=1;
RUN;
Now i get the following error that I don't know how to fix:
************************************************************************************************************
21 PROC LCA DATA=test;
----
22
202
NOTE: An external program, not a SAS procedure, is being executed.
ERROR 22-322: Syntax error, expecting one of the following: ;, AUDIT, CC, CLEANUP.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
22 NCLASS 2;
23 ITEMS it1 it2 it3 it4;
24 CATEGORIES 2 2 2 2;
25 FREQ count;
26 SEED 100000;
27 RHO PRIOR=1;
28 RUN;
NOTE: Return code from LCA is -1073741510.
NOTE: PROZEDUR LCA used (Total process time):
******************************************************************************************************
I downloaded the 64-bit version for my 64-bit SAS and followed exactly the instructions of the developers.
Previously I used PROC LCA with SAS 9.3 and it ran smoothly. For SAS 9.4 I had to reinstall it and now it does not work anymore.
How can I fix this problem?
Thanks
Yes, I did. That's why I checked again if I installed the right version, but that does not seem to be the problem.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.