I am looking through a previous analyst's code and they frequently used proc surveyfreq and proc surveylogistic with the weights option. I have not done this in some time and wanted to make sure my understanding of the weight statement was accurate.
When you specify the weight statement and variable, instead of SAS recognizing each variable with a default weight of 1, it uses the numeric value in the weight variable. When I looked at the data I am analyzing, weights ranged from 13.1 up to 51000 and about 12000 of the 30000 records are missing weights (FYI: I am using a dataset that the CDC provides).
So to my understanding, a record with a weight of 51000 compared to a record with a weight of 30000 will have more impact on the sample and statistical output.
I know this may seem an elementary question, but it has been a few years and I want to make sure I fully grasp the concept. Thank you for any help you can provide!
That is what the documentation states. Take a look at:
That is what the documentation states. Take a look at:
Yes, you're right, the more weighty observations carries more, ahem, weight, in the analysis Weighted means, weighted variances, weighted parameter estimates, and so on...
Details on how its used in each PROC is in the PROC documentation.
thank you art297 and DLing! Just what I needed to know
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.