Hello,
I am trying to save the probability distribution of a variable under certain conditions so that I can then assign a random value from that distribution to some individuals in my sample who have a missing value for the variable. More specifically, I need to use bins of four different variables where I match those with a missing value of a variable I have called age1b to those with a non-missing value of the variable according to their age, education level, sex and survey year and then assign them a random value of age1b from that distribution. I am not familiar with Mata at all, so I'm not sure of the best way to do this.
Any help is appreciated!
Related Posts with Saving probability distribution of variable under certain conditions and assigning random value from distribution
Keep with joint conditionHi I have another issue in relation to keeping variables with a joint condition. I am trying to sele…
Problem with destroyingHi all, Since I am relatively new to Stata, I ran into a problem with my data. Variable DealValue i…
Keep with joint conditionI have another issue in relation to keeping variables with a joint condition. I am trying to select …
Keep with joint conditionHi I have another issue in relation to keeping variables with a joint condition. I am trying to sele…
Keep with joint conditionI have another issue in relation to keeping variables with a joint condition. I am trying to select …
Subscribe to:
Post Comments (Atom)
0 Response to Saving probability distribution of variable under certain conditions and assigning random value from distribution
Post a Comment