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 <>
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,

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 
*   For searches and help try:

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