Originally posted by Clyde Schechter
View Post
I have written this code and seems to be what I am looking. It is tested and works. This is for t1. t2 is no longer needed.
Code:
generate leadership =t1 recode leadership (1/3=1) (4/6=0) generate animal_group =t1 recode animal_group( 1 4 6 =0) (2/3 5=1) generate old=t1 recode old (1/5=0) (6=1)
On last thing I will need to collapse these variables to the country-year, which then weighting them by the percentage of the calendar year makes sense. They should be added in the collapse code line given in #36
Comment