Hello everyone,
I am dealing with a somewhat complicated data that consists information about parents and their children. Therefore, questions about children are repeated 20 times assuming one respondent can have maximum of 20 children. So i have 20 columns for each children questions (e.g. 20 columns of child gender, 20 columns of child marital status, education, distance to parents etc.)
Since i cannot put 20 variables for gender, marital status, education etc. to my regression, I have to find a var to make these 20 variables into 1 variable. I was wondering if you can help me with this issue? How can i convert these variables into one? What can be the Stata command?
I am pasting an example of how my data look like. Thanks in advance for your help.
Best,
Martin
mergeid ch_gender_1 ch_gender_2 ch_gender_3 ch_gender_4
AT-000674-01 Male Male . .
AT-001215-01
AT-001492-01 Female Female Female Male
AT-001492-02 Female Female Female Male
Related Posts with How to combine multiple gender variables to one
Orindal outcomes for propensity score matchingFor psmatch2, is it possible for the outcome variable to be an ordinal outcome? For example, in onco…
Post-estimation, predicting the dependent variable with a change to one or more independent variablesDear Stata community, I'm attempting to predict the value of a dependent variable if one of the ind…
Creating a square matrix using two relational variablesHi, I've spent 5-6 hours browsing the help files and past posts, but could not find the answer to w…
How can I make further tests after a 2SLS-probitDear statalists: I want to do a weak-iv test and an endogenous test after a 2sls-probit. Because the…
First Differences regression and estimateDear members, I am a student new to STATA and may need your help on the below question. I have the…
Subscribe to:
Post Comments (Atom)
0 Response to How to combine multiple gender variables to one
Post a Comment