Hey,
in the panel study I am working with, there are two times the same variable (t34005a & t34005b). The first is only asked to people who no longer live at home and the second is only asked to those who still live at home.
I would like to create a new variable from this so that I have all the cases.
My idea was the following:
// restrict variable 2 to the cases who live either with the father or with the mother.
keep t34005a if t743024==1 | t743025==1
then the same for the variable of persons who no longer live at home:
keep t34005b if t743024 <>1 | t743025<>1
and then merge, maybe with append?
I'm a complete newbie and this is just a rough sketch.
Thanks a lot for the answers!
Related Posts with Generate new variable
Weakly balanced to Strongly balanced datasetHi! I would like to seek assistance on how can I convert the dataset from 'weakly balanced' to 'stro…
Lincom - interactions post estimationHi all, My dependent variables are binary variables. I have two types of programs (Program A, Progr…
Statistics on different subgroupsHello, Is there a way to compute summary statistics (mean) of many possibly overlapping subgroups in…
SVAR with permanent and transitory shockHi! I am trying to model an SVAR of two variables, log of the real cupper price (I(1)) and non minin…
Fixed effects estimation for different moviesHi guys! I'm unsure about a procedure I'm doing with fixed effects and I would like to check whether…
Subscribe to:
Post Comments (Atom)
0 Response to Generate new variable
Post a Comment