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
Can xtabond2/xtdpdgmm be applied to estimate a static (rather than dynamic) panel data model?Dear All, The (ssc install) xtabond2 and (ssc install) xtdpdgmm commands are commonly used to estima…
Counting number of occurrence of observations based on two variablesDear community, I have a dataset; the following code generates a snippet of it Code: clear input …
Help needed: Using loops to automate extracting of dataHi all, I am using Stata version 16 and would need some help in creating of loops to automate data.…
merging datasetsI am trying to merge two datasets, which have the date variable in common. However, when I try to me…
Drop observations given multiple conditionsHi everyone, I am working on a state dataset where I need to keep observations of firms with non-mi…
Subscribe to:
Post Comments (Atom)
0 Response to How to make a binary outcome variable of 3 other variables
Post a Comment