BookmarkSubscribeRSS Feed
BiswadeepG
Calcite | Level 5
While using sampling weights in logistic regression, does SAS duplicate the rows before maximising log likelihood and estimating parameters? Is there any risk of observation independence being affected while using weights?
3 REPLIES 3
StatDave
SAS Super FREQ

If you are analyzing survey data, do not use PROC LOGISTIC. Weights in PROC LOGISTIC do not replicate observations - they serve as multipliers in the log likelihood. Only the SURVEY procedures (SURVEYFREQ, SURVEYLOGISTIC, etc.) can provide a proper analysis of survey sample data. A variable specified in the WEIGHT statement in other procedures may produce correct parameter estimates, but their variances will not be correct. Special variance estimators are needed in the analysis of survey data and only the SURVEY procedures have these estimators. See the discussion and examples in the PROC SURVEYLOGISTIC documentation.

BiswadeepG
Calcite | Level 5
Thanks a lot for your response. Is there any document reference that can help showing that the sas weights do duplicate rows ?
sbxkoenk
SAS Super FREQ

Weights are NOT used to duplicate/replicate observations

, only to change the contribution of an observation to the likelihood function!


Usage Note 22600: Distinction between the WEIGHT and FREQ statements
https://support.sas.com/kb/22/600.html

 

Koen

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 595 views
  • 0 likes
  • 3 in conversation