Stepwise function

Reply
New Contributor
Posts: 4

Stepwise function

I'm new here. Can't get this thing to work. Here's the log:

 

1067 *Model 8-A
1068 proc logistic;
1069 model dementia(event'1')= rutgers_Aff certif_ninc college h_col
_____
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
 
1070 /selection=stepwise slentry=.10 slstay=.05
1071 details
1072 lackfit;
1073 run;
 
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.TWO may be incomplete. When this step was stopped there were 0 observations and 14 variables.
 
Any help would be greatly appreciated. Thanks.
Trusted Advisor
Posts: 1,228

Re: Stepwise function

Add event='1' in model statement.

 

model dementia(event='1')= rutgers_Aff certif_ninc college h_col

New Contributor
Posts: 4

Re: Stepwise function

Thanks. I tried what you suggested. here's what I got back:

 

1064 set one;
1065
1066 *Model 8-A
1067 proc logistic;
1068 model dementia(event='1') = rutgers_Aff certif_ninc college h_chol
_____
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
 
1069 /selection=stepwise slentry=.10 slstay=.05
1070 lackfit
1071 details;
Super User
Posts: 3,233

Re: Stepwise function

Try adding a semicolon to your comment as its causing your proc logistic statement to become part of the comment also:

 

*Model 8-A;

New Contributor
Posts: 4

Re: Stepwise function

It works! Thanks for your help, Kiwi.

Ask a Question
Discussion stats
  • 4 replies
  • 281 views
  • 0 likes
  • 3 in conversation