Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Fwd: AIDS model price index


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: Fwd: AIDS model price index
Date   Wed, 8 Sep 2010 14:36:30 -0400

Stefano Verde <[email protected]>:
If you rename a temporary variable, it sticks around after the program is done.

On Wed, Sep 8, 2010 at 12:51 PM, Stefano Verde <[email protected]> wrote:
> Hello,
>
> I have estimated an AIDS model by adapting Poi's code, which I found in the
> stata 10 manual ("nlsur" command).
>
> The problem is the following: Poi's program uses a temporary variable,
> "lnpindex"; now, I would like to use the values of the latter for my
> own calculations, but this is not possible as "lnpindex"
> is indeed a temporary variable.
>
> How can I overcome this? I'd imagine that I'd need to define
> "lnpindex" as a global macro, instead of a temporary variable.
> However, first I'm not sure if this is correct and then, even if it
> was, I wouldn't know how to modify the code accordingly.
>
> Any help? That would be greatly appreciated.
>
> Sincerely,
> Stefano Verde
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index