Statalist


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

Re: st: Standard normal Depvar


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Standard normal Depvar
Date   Thu, 6 Aug 2009 03:34:46 +0000 (GMT)

--- On Wed, 5/8/09, Evans Jadotte wrote:
> I am trying to run a regression where the dependent
> variable has a standard normal distribution (those of you
> familiar with the "wealth index based on the PCA analysis",
> this is my Depvar).  However, I need to have the 
> prediction  to be all positive to use for transforming.
> How can I transform  the Depvar in order  to
> force  xb^ to take on positive values?

Here is one option:

reg y x1 x2
predict yhat
sum yhat, meanonly
gen yhatprime = yhat + abs(r(min))

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://home.fsw.vu.nl/m.buis/
-----------------------------------------




      

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index