Re: Why I am getting different total observations when using iweight for tabulating a variable [message #26119 is a reply to message #26116] |
Thu, 09 February 2023 11:45 |
sujata
Messages: 18 Registered: May 2019
|
Member |
|
|
Dear Tom,
Thank you very much for your reply.
I still have one query regarding the number of observations and population size. Even without applying svyset if I tabulate hv025 using iweight=shweight/1000000 the total number of observations is less.
gen weight_dis=shweight/1000000
ta hv025 [iw= weight_dis]
type of |
place of |
residence | Freq. Percent Cum.
------------+-----------------------------------
urban |26,122.0845 38.46 38.46
rural | 41,791.793 61.54 100.00
------------+-----------------------------------
Total | 67,913.878 100.00
Here Total is showing 67913.878, which is less than the actual number of observations, which is 68,549. Applying aweight gives a total of 68549. should I apply aweight or I am doing something wrong? Do I need to merge PR with HR and use shweight from HR file?
[Updated on: Thu, 09 February 2023 11:58] Report message to a moderator
|
|
|