Programming the statistical procedures from SAS

Weight statement - need confirmation of understanding

Accepted Solution Solved
Reply
Contributor
Posts: 71
Accepted Solution

Weight statement - need confirmation of understanding

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!


Accepted Solutions
Solution
‎09-14-2011 09:50 AM
PROC Star
Posts: 7,416

Weight statement - need confirmation of understanding


All Replies
Solution
‎09-14-2011 09:50 AM
PROC Star
Posts: 7,416

Weight statement - need confirmation of understanding

Frequent Contributor
Posts: 104

Weight statement - need confirmation of understanding

Yes, you're right, the more weighty observations carries more, ahem, weight, in the analysis Smiley Wink   Weighted means, weighted variances, weighted parameter estimates, and so on...

Details on how its used in each PROC is in the PROC documentation.

Contributor
Posts: 71

Weight statement - need confirmation of understanding

thank you art297 and DLing! Just what I needed to know Smiley Happy

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 138 views
  • 3 likes
  • 3 in conversation