BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
alexandra-vita
Calcite | Level 5

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.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Remove the = immediately after Class.

Should look like:

CLASS  treatment (ref="A") sequence (ref= "AB") period (ref= "P1") time (ref="V1");

 

View solution in original post

3 REPLIES 3
ballardw
Super User

Remove the = immediately after Class.

Should look like:

CLASS  treatment (ref="A") sequence (ref= "AB") period (ref= "P1") time (ref="V1");

 

alexandra-vita
Calcite | Level 5

Wow, thank you so much, it worked!

JOL
SAS Employee JOL
SAS Employee

Try removing the "=" sign after class

 

CLASS  treatment (ref="A") sequence (ref= "AB") period (ref= "P1") time (ref="V1");

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

Register Now

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
  • 3 replies
  • 860 views
  • 0 likes
  • 3 in conversation