Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: model building question


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: model building question
Date   Sat, 10 Jan 2004 15:01:26 -0500

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/



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