Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proc Anova

Status
Not open for further replies.

irinnew

Technical User
Mar 19, 2005
81
US
Hi,
I am confused with the following code
I run the following code :

proc anova data=study_all;
title 'Analysis for Survey';
class survey;
model emotional=survey/t;
means survey;
run;

and I got the following Error message...What I am doing wrong?
Thank you in advance,

Irin
*****************************************************************************

*-----------------------------------------------------------------*/
12 /*-- Perform Anova test --*/
13 /*-----------------------------------------------------------------*/
14 proc anova data=out.study_all;
15 title 'Analysis for Survey';
16 class Survey;

_____


_____

_____

180

180

180



ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR

180-322: Statement is not valid or it is used out of proper order.
ERROR 180-322:

Statement is not valid or it is used out of proper order.

17 model

emotional=Survey/t;

_____

_____

_____

180

180

180




ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR

180-322: Statement is not valid or it is used out of proper order.
ERROR 180-322:

Statement is not valid or it is used out of proper order.

18 means Survey;



_____

_____

_____

180

180

180




ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR

180-322: Statement is not valid or it is used out of proper order.
ERROR 180-322:

Statement is not valid or it is used out of proper order.

19 run;

ERROR:

Errors printed on page 2.
ERROR: Errors printed on page 2.
ERROR: Errors printed on

page 2.

 
Perhaps the TITLE statement should not be a part of the proc step. Try putting it before you run the Proc Anova procedure.
Klaz
 
Title /shouldn't/ be the problem (but might still be). Title is a non-executable statement, ie runs before the rest of the step even compiles, so should have no effect on the step.
My guess is that there is an unclosed quote or something similar further up your program, the syntax looks OK compared to the doco for the procedure:-
The fact that it is complaining just after a quoted string is a possible tell-tale there.

Chris' Prime debug tip - If the code that produces the error message seems to be fine, check that the steps before worked exactly as they should.
 
I assume that the problem probably was caused by unnapproper use of proc Anova ...because my data in Class are not really paired. In other words, Not all Members in Survey0 are necessarily appear in Survey1 and not the most members from Survey 1 necessarily appear in Survey2 and so on.

Also a lot of values under Emotional Field are empty. Others are numeric....

Therefore I am thinking about another Proc that I could use for my case. What do you think?
I am new in Statistics. Could you please give me a hand?

Thank You,

Irin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top