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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 891 views
  • 0 likes
  • 2 in conversation