Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Fwd: AIDS model price index


From   Austin Nichols <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Fwd: AIDS model price index
Date   Wed, 8 Sep 2010 14:36:30 -0400

Stefano Verde <verdes@tcd.ie>:
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 <verdes@tcd.ie> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index