Im working with a set of panel data which includes data on children, their parents, education, etc, as well as parents income over years, parents education over years, etc... I just recently noticed that instead of using data on average income over time, I need to find average parental income over the first 3 years of a childs life. Because children are born in random years throughout the data set I'm having a huge problem figuring out how to get this info into another variable. I have all the information needed in my set, but given that i have thousands of observations there is no way that I can go through and average over each childs first few years individually. Is there a way to loop in which i call info from a certain year? Thanks so much for the help!
-
Login or Register
- Log in with
Comment