Hi all.
I'm working on a panel data set. I need to creat new variable(s) from existing variable(s). I'm not good at Stata beacuse i am beginner. I want to give an example what i want to do. I could not upload the image because of error, that's why i uploaded the image http://i57.tinypic.com/33o3y0y.png
I want to create a new variable from variable fk070. It's age category varialbe, e.g. 11 = 35-39, 8=25-29, so on. hkimlik, fkimlik and fk010 are household id, individual id and year, repectively. New variable is dependency ratio which is a rate = (the number of persons who is <=14 and >=64)/total household member number. This variable must be created for each household and each year. How can i do this?
Sincerely.
I'm working on a panel data set. I need to creat new variable(s) from existing variable(s). I'm not good at Stata beacuse i am beginner. I want to give an example what i want to do. I could not upload the image because of error, that's why i uploaded the image http://i57.tinypic.com/33o3y0y.png
I want to create a new variable from variable fk070. It's age category varialbe, e.g. 11 = 35-39, 8=25-29, so on. hkimlik, fkimlik and fk010 are household id, individual id and year, repectively. New variable is dependency ratio which is a rate = (the number of persons who is <=14 and >=64)/total household member number. This variable must be created for each household and each year. How can i do this?
Sincerely.
Comment