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]

st: bcskew0 transform back


From   raoul reulen <[email protected]>
To   [email protected]
Subject   st: bcskew0 transform back
Date   Tue, 18 May 2010 17:21:20 +0100

Hello all,

After i used bcskew0 I want to transform the relevant variable back.
How would I do this? For lnskew0 I do it like this:


.sysuse auto
.lnskew0 lnmpg = mpg
.local gamma = r(gamma)
.replace lnmpg = exp(lnmpg) + `gamma'

but I cannot work out how to do this for bcskew0. Obviously I need to
save r(lambda) to a local, but I can't get it right. Any suggestions?

.sysuse auto
.bcskew0 lnmpg = mpg
.local lambda=r(lambda)
???



Thanks.

Raoul
*
*   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