Page 1 of 1

Reduce a sample

Posted: Sat Sep 09, 2017 6:40 pm
by mpsc19
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

Re: Reduce a sample

Posted: Sat Sep 09, 2017 7:13 pm
by startz
Something like
smpl if @val(a2)=2361202 and (status="parent" or (status="child" and age>18 and age<30))