Stata does this easily (and by default, when you use predict). For example
reg y x1 x2 x3 if male==1
predict yhat
sum yhat if male==0
Michael Blasnik
[email protected]
----- Original Message -----
From: "David J. Bernstein" <[email protected]>
To: <[email protected]>
Sent: Saturday, January 10, 2004 1:49 PM
Subject: st: model building question
> Hello,
>
> I'm a labor economist and new to STATA. What I would
> like to do is run a regression using only the male
> employees of a particular company. I then want to use
> the coefficient estimates of this "male only"
> model to predict the salary of the females for the
> same company. I have hundreds of interaction and
> dummy variables (in some models close to a thousand).
> So it is not practical for me to enter the coefficents
> by hand into a program. Is there an efficient way to
> do this with STATA?
>
> In other words is it possible with stata to create a
> regression model from a portion of the data and then
> use the results to predict the dependent variable for
> the remaining data?
>
> Thanks in advance for any help.
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/