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");
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.