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");

 

sas-innovate-white.png

Our biggest data and AI event of the year.

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.

 

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