Thank you very much Glenn for your great help. I appreciate it. The
program now works nicely after I make some changes as you suggested.
Many thanks!
On Thu, Apr 9, 2009 at 12:47 PM, Glenn Goldsmith
<[email protected]> wrote:
> Hi Quang,
>
> These two lines:
>
>> - replace `yb0' = ( `y_bo')^(`alpha') if `y_b0'>=0
>> = replace __000014 = ( )^(__00000T) if __000018>=0
>
> Tell you that the local macro `y_bo' in the first line is empty (hence the
> empty parentheses when the macro is evaluated in the second line).
>
> I assume you mean `y_b0' instead.
>
> As an aside, you could just code
>
> generate double `yb0' = (`y_b0')^(`alpha') if `y_b0'>=0
>
> instead of
>
> generate double `yb0' = .
> replace `yb0' = (`y_b0')^(`alpha') if `y_b0'>=0
>
> Same goes for `ya1'.
>
> HTH,
>
> Glenn.
>
> Quang Nguyen <[email protected]> wrote:
>
> Thanks Glenn and Maarten. I appreciate it.
>
> Here is part of the "trace" that contains the error:
>
> - generate double `yb0' = .
> = generate double __000014 = .
> - replace `yb0' = ( `y_bo')^(`alpha') if `y_b0'>=0
> = replace __000014 = ( )^(__00000T) if __000018>=0
> invalid syntax
> replace `yb1' = ( `y_b1')^(`alpha') if `y_b1'>=0
>
> I double check the code and nothing seems wrong. Do you have any idea?
>
> *
> * 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/
>
--
"My father gave me the greatest gift anyone could give another person,
he believed in me." - Jim Valvano
*
* 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/