I am trying to use PROC MIXED for the first time with my own data (I have only used this in a biostats course with a pre-defined template for the given data) and I keep receiving this error for my CLASS statement:
"ERROR 180-322: Statement is not valid or it is used out of proper order."
My code is below:
PROC MIXED
DATA= GGGImp.TNFa METHOD= REML;
CLASS= treatment (ref="A") sequence (ref= "AB") period (ref= "P1") time (ref="V1");
MODEL TNFalpha = sequence treatment time period sequence*time period*treatment / SOLUTION;
RANDOM intercept / SUBJECT=subjID g vcorr;
RUN;
What's interesting is this general template worked for similar data in my biostats course, so not sure where I am going wrong here. Any help is extremely appreciated.
Remove the = immediately after Class.
Should look like:
CLASS treatment (ref="A") sequence (ref= "AB") period (ref= "P1") time (ref="V1");
Remove the = immediately after Class.
Should look like:
CLASS treatment (ref="A") sequence (ref= "AB") period (ref= "P1") time (ref="V1");
Wow, thank you so much, it worked!
Try removing the "=" sign after class
CLASS treatment (ref="A") sequence (ref= "AB") period (ref= "P1") time (ref="V1");
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.