I have a dataset with a variable sex (male, female, unknown), I want to create a new variable that will do a proportional redistribution of the unknown category into the known categories of male and female. How do I do that? I tried something like redistribute num3, to(num1 num2), but it did not work.
Related Posts with Proportional redistribution
Aggregating observations for different variables based on an IDHi there, I have a dataset on ownership concetration for various firms with roughly 490000 observat…
Getting results for a categorical variable with eststo and mi dataDear all, I am working with mi data and plan to use "coefplot". Therefor I want to save results in …
Random slopes for participants in a crossed random effects model with categorical outcomesI've got a mixed effects model with both crossed and nested random effects. The data concern a serie…
spmap: several observations per identifier; id() does not uniquely identify the observations;Hi, I am currently trying to plot a map with several observations for each district (polygon, I gue…
Keep font size fixed when switching displays?Stata (15.1 MP, Win 10 64) on my laptop has started changing font size wildly when switching between…
Subscribe to:
Post Comments (Atom)
0 Response to Proportional redistribution
Post a Comment