BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
cdumigan
Calcite | Level 5

Hello,

 

I am a student using university edition of SAS studio trying to do a contrast statement to contrast means within a factor. The factor is "variety" and I am am comparing two different groups of clover varieties. However my contrast statement always gets the same error message 

 

145 contrast 'doublecut vs singlecut' variety 1 -5 0 1 1 1 1 1 1 1 1 -5 1;
________
180
 
ERROR 180-322: Statement is not valid or it is used out of proper order.
 
I have attached a picture of my code. I am clueless as to why my statement is invalid or out of proper order. If anyone knows what I am doing wrong please share.

Sas Code.PNG
1 ACCEPTED SOLUTION

Accepted Solutions
1 REPLY 1
data_null__
Jade | Level 19
Try removing the RUN; statement after LSMEANS

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 1061 views
  • 0 likes
  • 2 in conversation