Hi all,

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]
should I alter my weight variable for using aweight as suggested in 3rd reading I mentioned above ( if yes, then how can I alter my weight variable because I am unable to clearly understand the reading mentioned) or should I just use aweight as suggested in the first reading I mentioned above. Or is there any other way to adjust pweight while getting kdensity graph?
Many thanks in advance.