Statalist The Stata Listserver


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

Re: st: Re: RE: povdeco - unable to retrieve disaggregated results


From   ESamman <emmmasa@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: RE: povdeco - unable to retrieve disaggregated results
Date   Thu, 6 Apr 2006 08:51:51 -0700 (PDT)

Thanks very much, problem solved.
Best wishes
Emma

--- "R.E. De Hoyos" <redeho@hotmail.com> wrote:

> Emma,
> 
> David is right. The global macros FGT0, FGT1 and
> FGT2 do not 
> exist. -povdeco- saves the results in global macros
> S_FGT0, S_FGT1 and 
> S_FGT2. With this minor modification your code
> should work.
> 
> Best,
> Rafa
> 
> ----- Original Message ----- 
> From: "David Harrison" <david.harrison@icnarc.org>
> To: <statalist@hsphsun2.harvard.edu>
> Sent: Thursday, April 06, 2006 3:55 PM
> Subject: st: RE: povdeco - unable to retrieve
> disaggregated results
> 
> 
> >I don't have -povdeco- installed, so I am just
> guessing here, but are
> > you certain that the global macros $FGT0 etc
> exist? If $FGT0 is empty,
> > then the first -replace- command will give the
> error "if not found
> > r(111)" as it would interpret the -if- as a
> variable name rather than an
> > if clause. Is this the error you got?
> >
> > David
> >
> > -----Original Message-----
> > From: owner-statalist@hsphsun2.harvard.edu
> > [mailto:owner-statalist@hsphsun2.harvard.edu] On
> Behalf Of ESamman
> > Sent: 06 April 2006 15:16
> > To: statalist@hsphsun2.harvard.edu
> > Subject: st: povdeco - unable to retrieve
> disaggregated results
> >
> > 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
> >
> >
>
______________________________________________________________________
> > This email has been scanned by the MessageLabs
> Email Security System.
> > For more information please visit
> http://www.messagelabs.com/email
> >
>
______________________________________________________________________
> >
> > *
> > *   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/
> > 
> *
> *   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/
> 


__________________________________________________
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index