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
Advice on extracting data from regression and exporting into a matrixDear all, I am trying to extract data from a pvar and mold it into a matrix. The output of the pvar…
Use a for-loop to generate dummy variablesI'm having a hard time generating dummy variables using a for loop. I have a variable with some valu…
Interpretation of interaction terms in logistic regressionI am not being able to interpret the interaction terms properly. can please anyone help? …
Testing significance of CAR in event studyDear Statalists, i have done an Event Study as described by Princeton DSS ( HTML Code: https://ds…
Generate new variable in a panel taking differencesHello, I am working in stata 15 on windows 10 and I want to create a variable that is the differenc…
Subscribe to:
Post Comments (Atom)
0 Response to How to make a binary outcome variable of 3 other variables
Post a Comment