Hello members,
Please i want to generate a new variable "marital status" to have categories "1. Maried 2. single 3. Divorced 4. widowed" from the following three variables Var1 (two categories 1. married 2. Not in union) Var2 ( If not in a union, are you( 1. formerly married 2. never married ) Var 3(if formerly married, are you ( 1. Widowed 2.divorced)
Related Posts with generating new variable
Test Nonlinear/Squared/Quadratic/Curvilinear Moderating Effect with utestHi everyone, currently I am investigating a regression model with nonlinear moderating effect (XZ²)…
Understanding the "normal" function in StataI have z-scores on BMI, I created them using the egen function zanthro() and they look like the belo…
How to drop firm-years observations in which CEO turnover occurredHello everyone, I am a new user on Stata and I need some help with the first replication study I am …
Summary statistics for subgroups of a categorical variableDear Statalist, I want to create a code giving me summary statistics (mean, min and max) of each su…
Leave some imputed variables out of imputation of other variablesI'm working on running mi impute on a data set with an unfortunate structure, where I have: 1) Seve…
Subscribe to:
Post Comments (Atom)
0 Response to generating new variable
Post a Comment