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
Contrast tablesHi all, New Statalist user here with a simple question (I'm a long time Stata user who is trying to…
Panel data: Creating a bilateral dataset with countries and years (replicating the dataset for each panel)Hi everyone, I have a panel dataset of exchange rate with 200 countries and 16 years, please find b…
Balance an unbalanced datasetHi all, I have a strongly unbalanced dataset of countries observed by year. I would like to balance…
Weekly meansHello Everyone!! I need to obtain weekly means for some measurements. I need a weekly mean by subjec…
Estimating risk difference for binary outcome in cluster RCTI am analysing data from a cluster RCT looking at the effect of an intervention (int) in health cent…
Subscribe to:
Post Comments (Atom)
0 Response to Help with merging variables
Post a Comment