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
MimrgnsHi I'am trying to obtain margins after MI estimate and test differences between each slopes by a gro…
Paneldata with feDear Statalists, I'm using a panel dataset on U.S. imports to the EU including tariff changes for s…
Meta-Analyses-HeterogeneityHello, I ran a pairwise meta-analyses in STATA and i found high level of heterogeneity, so i want to…
How to add value label to default missing values?Hi there, Sorry for a really beginner question. I am trying to add value labels to organise my data…
Using a cross sectional analysis to support the results of a panel analysisHi all, I have a 3 wave panel of children's height and weight and whether either of their parents e…
Subscribe to:
Post Comments (Atom)
0 Response to How to combine multiple gender variables to one
Post a Comment