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

From |
"sdm1" <sdm1@york.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: How to refer to the constant in a previously estimated regression? |

Date |
Wed, 1 Jul 2009 18:29:18 +0100 |

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/

**Follow-Ups**:**st: Re: How to refer to the constant in a previously estimated regression?***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**st: graph combine question** - Next by Date:
**st: Monthly observations to quarterly averages** - Previous by thread:
**st: modeling contract duration** - Next by thread:
**st: Re: How to refer to the constant in a previously estimated regression?** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |