Programming the statistical procedures from SAS

Should I suppress the intercept when using the strata statement in proc surveylogistic?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

Should I suppress the intercept when using the strata statement in proc surveylogistic?

Do I need to suppress the intercept in proc surveylogistic when using the strata statement to avoid the dummy variable trap (SAS 9.4)? I see that when I use the strata statement with proc logistic, the model automatically suppresses the intercept.  When I use the strata statement with proc surveylogistic, the intercept is not suppressed, and I get very different coefficient estimates on other variables of interest.  Why do proc logistic and proc surveylogistic handle the intercept differently under the Strata statement?


Accepted Solutions
Solution
‎07-21-2017 05:21 PM
SAS Employee
Posts: 50

Re: Should I suppress the intercept when using the strata statement in proc surveylogistic?

Posted in reply to rachard11

The STRATA statement in the two procedures have very different functionality attached to them.  In Proc SURVEYLOGISTIC, it is used to identify the strata for a complex survey design.  In Proc LOGISTIC, it is used to idenitfy the matched pairs for running models with n:m matching.

 

Put another way, the STRATA statement in LOGISTIC runs a stratified logistic regression while in SURVEYLOGISTIC it runs a logistic regression from a stratified sample.

 

Unless you had reason to restrict the intercept to zero in SURVEYLOGISTIC, you would not want to use the NOINT option.

View solution in original post


All Replies
Solution
‎07-21-2017 05:21 PM
SAS Employee
Posts: 50

Re: Should I suppress the intercept when using the strata statement in proc surveylogistic?

Posted in reply to rachard11

The STRATA statement in the two procedures have very different functionality attached to them.  In Proc SURVEYLOGISTIC, it is used to identify the strata for a complex survey design.  In Proc LOGISTIC, it is used to idenitfy the matched pairs for running models with n:m matching.

 

Put another way, the STRATA statement in LOGISTIC runs a stratified logistic regression while in SURVEYLOGISTIC it runs a logistic regression from a stratified sample.

 

Unless you had reason to restrict the intercept to zero in SURVEYLOGISTIC, you would not want to use the NOINT option.

Occasional Contributor
Posts: 9

Re: Should I suppress the intercept when using the strata statement in proc surveylogistic?

Posted in reply to rachard11
Thank you. My understanding is that the strata statement in proc logistic is what I should use to implement a fixed effects model with panel data. Is there a way to also cluster standard errors with this model in SAS? This was my intent when I originally tried using the strata statement in proc surveylogistic (along with the cluster statement).
SAS Employee
Posts: 50

Re: Should I suppress the intercept when using the strata statement in proc surveylogistic?

Posted in reply to rachard11

You might also consider looking at GENMOD with the REPEATED statement because GEE models do not require estimation of a parameter for each set of correlated observations (i.e. panels). 

 

LOGISTIC with the STRATA statement uses a conditional model (or GENMOD with the STRATA and EXACT statements in GENMOD for exact, conditional estimation for other models--this approach obviously wouldn't work with the REPEATED statement)

 

Either way SURVEYLOGISTIC would not be what you would want to use.as can be done by using the STRATA statement in PROC LOGISTIC for logistic models 

☑ This topic is solved.

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

Discussion stats
  • 3 replies
  • 192 views
  • 3 likes
  • 2 in conversation