Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using tddens with Survey Weights

    Hello,

    I am currently working with the tddens command to generate a two-dimensional density plot for two variables, m_ac_npi and wage_h. My dataset involves survey data, and I would like to incorporate survey weights into the density plot. I have a couple of questions regarding the capabilities and usage of tddens:
    1. Is there a way to apply survey weights when using the tddens command? I am trying to ensure that the density plot accurately reflects the weighted distribution of my sample.
    2. I am also interested in overlaying lines on the density plot to indicate the median values of each variable. I attempted to use twoway plot commands with tddens but didn't succeed. Is there an integrated approach within tddens or a compatible method to add these lines directly?


      Thank you in advance for your help!
Working...
X