I'm using Stata 10. I've previously estimated a couple of regression models
and have saved the model coefficients to a .ster file. Now want to use
these model coefficients in conjunction with some new data to form predicted
values.
I recall the old estimates using:
estimates use "modelA"
estimates store modelA
estimates use "modelB"
estimates store modelB
Then I use:
estimates for modelA: predict newmodelA, xb
estimates for modelB: predict newmodelB, xb
Both regression models included a constant and so the new sets of
predictions (newmodelA and newmodelB) both incorporate their respective
constants. However, I'd like to subtract the regression constant from both
sets of predictions. In other words I'd like to:
gen prednoconsA=newmodelA - [constant from model A]
gen prednoconsB=newmodelB - [constant from model B]
How do I refer to [constant from model A] and [constant from model B] to do
this?
Thanks.
*
* 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/