SAS Studio

Write and run SAS programs in your web browser
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.

undefined
1 ACCEPTED SOLUTION

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

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!

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
  • 1183 views
  • 0 likes
  • 2 in conversation