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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 444 views
  • 0 likes
  • 3 in conversation