Hi, i have 3 variables concerning migrationsbackground: born in country (yes or no), mother born in country (yes or no) and father born in country (yes or no). What i want is to create a new variable called migrationbackground where its yes if mother and father is no or if born in country is no.
Hopefulle somebody can help me to do this. Thanks
Related Posts with Help with merging variables
Any literature on Correlated Random Effects (CRE) with selection correction?Hello all, I am looking for the papers I can refer to regarding the selection correction in the cor…
problem with multiple if conditionsI am having issues with using multiple if conditions with replace function. I have two variables i.e…
SimulationHello guys, I'm trying to run a bootstrapping simulation just like here: https://www.statalist.org/…
Differences-in-Differences with ModeratorsHello all, I could use some input as to how to go about a research design that I am look at doing.…
How to transfer my string variable to date variable? Code: * Example generated by -dataex-. To install: ssc install dataex clear input str10 week float …
Subscribe to:
Post Comments (Atom)
0 Response to Help with merging variables
Post a Comment