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
How to do a special histogram like this in Stata?Hello, I saw a histogram by group like below. I want to use the classical Stata data auto.dta to mim…
Omitted variable in logistic regressionHi , I have a problem with the Logit regression result in Stata. Some of the dummy variables have be…
Create change variable for timeseries data.Hi, my problem is twofold. I downloaded a database containing gvkey, sic code, year (1995 - 2005), y…
combine Several observations to one observation in a given yearDear all, I need to get the SUM of Var 1. for each ID observation in 2016, for example, A person w…
Getting selected variables from cvlassoMy read of "help cvlasso" is that e(varXmodel) should contain only variables chosen by cvlasso. Howe…
Subscribe to:
Post Comments (Atom)
0 Response to Proportional redistribution
Post a Comment