This is what my brain help me to do, but still I don't find the way to
contabilize the value 4.
1. egen n1=max(ss1) if reljefe1<=2, by (hogar) gives me the values equal to
1.
2. replace n1=2 if ss1==1 & reljefe1>2 & edad>=10 Values ==2
3. replace n1=3 if (reljefe==1 & ss1==. & n1==1) | (reljefe==2 & ss1==. &
n1==1), allows me to construct the values ==3.
4. I'm still thinking how can I calculate this:
This would be the reljefe=3 that are age<=5, and whose fathers have social
security (I think that I can use the new values for n1=1 or 3), but my
tries doesn't make what I want.
Thanks for helping me.
P.D. I read the FAQ already.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/