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: A cautionary tale re scaling
From
Clive Nicholas <[email protected]>
To
[email protected]
Subject
Re: st: A cautionary tale re scaling
Date
Thu, 15 Apr 2010 16:58:24 +0100
Kit Baum wrote:
> We normally do not think about the scale of variables entering a linear regression. As recent exchanges on Statalist have pointed out, that may be a problem when it comes to computing marginal effects of models including squared terms, where the variable being squared is quite large (say, 1991 rather than 91).
>
> I ran into a similar problem when a student asked why one of the linear constraints he was trying to impose on a linear 3SLS regression (via reg3) was being rejected as 'inconsistent or redundant', when five other constraints were accepted. The constraint did not involve any variable from the other five, and even if it was the only constraint, it was rejected.
>
> The problem arose because the constraint was on the coefficient of a variable, gdp, that appeared in two equations. The variable was measured in units yielding a range between 10^7 and 10^8, which is not unusual for economic data retrieved from, say, World Development Indicators; it is not scaled into millions, billions, trillions etc. When I scaled the variable to 10^-6, the constraint worked fine.
>
> The moral of the story, then, is that although the constrained least squares estimator (cnsreg) or any linear regression command accepting constraints (e.g., sureg, reg3) is indeed an exercise in linear algebra, it may not work properly if the scale of the variables is extreme. If problems are encountered, check for such scaling issues, as earlier exchanges have suggested you should when computing marginal effects.
Very nteresting, but why not take the natural log of such variables
and fit those? Or do they exhibit abnormal behaviour in such models?
--
Clive Nicholas
[Please DO NOT mail me personally here, but at
<[email protected]>. Please respond to contributions I make in
a list thread here. Thanks!]
"My colleagues in the social sciences talk a great deal about
methodology. I prefer to call it style." -- Freeman J. Dyson.
*
* 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/