Statalist


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

st: Regression by SIC and predicting different model


From   Ferdinand Siagian <fsiagian@maine.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Regression by SIC and predicting different model
Date   Tue, 20 Oct 2009 00:29:31 -0400

Hi Statalist,

I try to run a regression for 10 different industries and use the
coefficients to predict a different model.

For example:

I regress the following regression for different industries:

Y = a + b X1 + c X2 + error

So, I use the following command

By industries: regress Y X1 X2;

I would like to use a-hat, b-hat, and c-hat to predict:

Z = a-hat + b-hat X3 + c-hat X4.

I tried "predict" but it did not work. I also tried using _b[var] but it did
not work.





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