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
Pearson's Chi-Squared Test - Requesting help with tab2I am currently working on an extension for research that requires me to measure whether the allocati…
LSDVC methodAfter regressions with LSDVC method stata indicates bootsraps error. I want to know what is differnc…
Missing Time-Series DataHi Statalist,
I have a time series dataset of ozone data for multiple different counties. It has qu…
scatterplotI would like to do several scatterplots were I plot the correlation btw mortality and covid-cases an…
Merging multiple .tex files: How to sort the individual files?I am outputting a lot of tex tables as raw files and then merge them into one ordered tex document u…
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