Hi!!
I have created the variable PERCAPITA, and I want to use weights ( FEX_C) to get the poulation estimate
gen PERCAPITA=. if parent==10 | parent==11 | parent==12 | parent==13
replace PERCAPITA= I_UGASTO/hogar_size if parent==1 | parent==2 | parent==3 | parent==4 | parent==5 | parent==6 | parent==7 | parent==8 | parent==9 | parent==14
I am using the next line of code, but it is not working
tabstat FEX_C, by (PERCAPITA) sta (sum)
Any ideas?
I have created the variable PERCAPITA, and I want to use weights ( FEX_C) to get the poulation estimate
gen PERCAPITA=. if parent==10 | parent==11 | parent==12 | parent==13
replace PERCAPITA= I_UGASTO/hogar_size if parent==1 | parent==2 | parent==3 | parent==4 | parent==5 | parent==6 | parent==7 | parent==8 | parent==9 | parent==14
I am using the next line of code, but it is not working
tabstat FEX_C, by (PERCAPITA) sta (sum)
Any ideas?
Comment