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
Running Mann-Whitney test on averages over 20 periods for a repeated experiment Dear all, I am running Mann-Whitney tests on data from 6 different treatments of an economic exper…
Quadratic Growth ModelDear Stata experts, I'm handling with a longitudinal data from a twin study and want to investigate…
How to*create a POST variable to be used for Difference-in-Differences for panel dataI want to create 2 POST variables to observe the effects of a merger on a company. Problem: The rec…
"mean" command with factor variables in StataDear all, I wonder if any one knows if there is an alternative command that can do the same things a…
staet problem with maximum length of observationI am using Stata 15.1 on Windows 10. stset gives a too low maximum observation time (16.949 years an…
Subscribe to:
Post Comments (Atom)
0 Response to Proportional redistribution
Post a Comment