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");
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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 save with the early bird rate—just $795!
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.