Write and run SAS programs in your web browser

Error in estimate and contrast statements - need help interpreting error

Accepted Solution Solved
Reply
Occasional Learner
Posts: 1
Accepted Solution

Error in estimate and contrast statements - need help interpreting error

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.
Attachment

Accepted Solutions
Solution
‎01-25-2017 01:49 PM
Respected Advisor
Posts: 3,775

Re: Error in estimate and contrast statements - need help interpreting error

Try removing the RUN; statement after LSMEANS

View solution in original post


All Replies
Solution
‎01-25-2017 01:49 PM
Respected Advisor
Posts: 3,775

Re: Error in estimate and contrast statements - need help interpreting error

Try removing the RUN; statement after LSMEANS
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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