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
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.