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.
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
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!
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.