Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: povdeco - unable to retrieve disaggregated results


From   ESamman <[email protected]>
To   [email protected]
Subject   st: povdeco - unable to retrieve disaggregated results
Date   Thu, 6 Apr 2006 07:15:36 -0700 (PDT)

Dear all:

I am having trouble with a very simple program (see
below) using povdeco. When I try to retrieve the
results for P0, P1, P2, it tells me that the "if" is
not valid. In the archived posts, I find the same
expression used - therefore I can't figure out why it
won't work here. I'd be grateful for any advice.
Many thanks in advance for your help.
best wishes,
Emma


local pline =2000

gen P0=.
gen P1=.
gen P2=.

levels7 sexhead, local (S)
foreach r of local S {
povdeco y_sex [w=expr] if sexhead==`r', pl(`pline')

replace P0=$FGT0 if sexhead == `r'
replace P1=$FGT1 if sexhead == `r'
replace P2=$FGT2 if sexhead == `r'	
}

tabdisp sexhead, c(P0, P1, P2)

drop ysexnew y_sex
drop P0 P1 P2

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index