I am trying to get kernel density graphs but i am unable to get these with adjustment of sample weights which are pweight in my case. I have gone through many readings including (1) https://www.stata.com/statalist/arch.../msg01383.html which is suggesting that the use of aweight is equivalent to pweight so one can use aweight because stata does not allow the use of pweight for kdensity estimate.
The other thing I found somewhat relevant is (2) https://www.stata.com/statalist/arch.../msg00426.htmlbut I think the solution suggested in this will not apply to my case because the weights in my case are probability weights whereas here in this the weights are frequency weights.
Here (3) https://www.stata.com/statalist/arch.../msg00530.html is yet another one which seems quite related to my problem but I am unable to understand in this how can I get this capital W in MY_W in this code
Code:
kdensity income [aw=MY_W]
Many thanks in advance.
0 Response to pweight and kernel density
Post a Comment