Hi all,
My outcome variable is Entrepreneur =Yes=1 and Entrepreneur = No=wageworker=0
I'm using GEM data and I define entrepreneur with the variables bstart = yes = 1 and/or ownmge = yes = 1. The command I used for this is:
gen entrepreneur = 1 if bstart_e == 1 | ownmge_e == 1
replace entrepreneur = 0 if bstart_e == o & ownmge_e == 0
GEMWORK 3 == 10 gives all working people, so including entrepreneurs and wagewokers. My first hypothesis is: Women are less likely than men to be an entrepreneur (as compared to being a wage worker).
But using the command above does not compare entrepreneurs with wagewokers, but with anyone else but entrepreneurs.
How can I make this variable?
Thanks in advance,
Josephine
Related Posts with How to make a binary outcome variable of 3 other variables
How to count number of countries when you have individual-level data of many countriesHi, I need to fill in my descriptive statistic analysis sample, and thus I need to count the number…
rangestat: regress by group, but not rolling window (for entire time window)Just two quick questions. 1) Is it possible to use rangestat to do regressions by group, but not fo…
Multiple imputation + ttestHi, I am struggling to find the right code that allows me to do a ttest on imputed data. mi estimate…
How to count number of IDs with more than one conditionAn extract of my data is displayed below. In the data, 0=Condition is absent, and 1=Condition is pre…
Marginal effects command doesn't work. Don't understand error: factor variables may not contain noninteger valuesHi! I'm doing a binary logistic regression in Stata 15.0, but my supervisor told me you cannot inte…
Subscribe to:
Post Comments (Atom)
0 Response to How to make a binary outcome variable of 3 other variables
Post a Comment