Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: matching children and parents

From   Andrea Smurra <>
Subject   st: matching children and parents
Date   Wed, 12 Jun 2013 14:15:47 +0630

Hello everyone.
I am dealing with a big household survey.
I am interested in child labor and education and my objective is to create variables for each children representing parents or household' characteristics.
In particular, for each children I created two variables specifying the IDs of mother and father. Now I would like to create a  variable that, for each children, specifies parents' education in the following way


where education is a variable already in the dataset

I know a way to do this, but it is extremely time consuming and I was wondering what would be the syntax to create the above "function".

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index