Reduce a sample
Posted: Sat Sep 09, 2017 6:40 pm
Im a very new user of Eviews and I speak spanish.
I already did this to join the code of a set of houses with the code of a home. The number 2361202 is the code of a particular home and now I want to reduce the sample to parents and children between 18 and 30 years living in that home (only children between this years), and my question is how to do it. Thanks.
alpha a2= a1 + @str(nro_hogar)
alpha a1=codusu
alpha a2= a1 + @str(nro_hogar)
series anh
anh= @sumsby (CH03=3, a2)
smpl @all if @val(a2)=2361202
I already did this to join the code of a set of houses with the code of a home. The number 2361202 is the code of a particular home and now I want to reduce the sample to parents and children between 18 and 30 years living in that home (only children between this years), and my question is how to do it. Thanks.
alpha a2= a1 + @str(nro_hogar)
alpha a1=codusu
alpha a2= a1 + @str(nro_hogar)
series anh
anh= @sumsby (CH03=3, a2)
smpl @all if @val(a2)=2361202