[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: How to use estimated coefficients in subsequent calculations
From
"sdm1" <[email protected]>
To
<[email protected]>
Subject
st: How to use estimated coefficients in subsequent calculations
Date
Wed, 15 Apr 2009 19:40:24 +0100
I'm using the predict command -- predict yhat, xb -- to apply the
coefficients from estimation on one data set to another data set. However,
I'd like to be able subtract the estimated constant term from the
prediction. How do I refer to the estimated constant (say, b[0]) to do
this: generate yhatwithoutcons=yhat-b[0]?
Thanks.
Steve
*
* 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 |