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

Re: st: RE: Predict Command


From   Alan Neustadtl <alan.neustadtl@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Predict Command
Date   Tue, 8 Mar 2005 13:02:50 -0500

This may change your smaple size included in the model, which may, or
may not be what you want.

Best,
Alan


On Tue, 8 Mar 2005 17:07:41 -0000, Nick Cox <n.j.cox@durham.ac.uk> wrote:
> If this is what you want, reissue -poisson-
> keeping only the desired predictor variables
> and then issue -predict-.
> 
> Nick
> n.j.cox@durham.ac.uk
> 
> anju parthan
> 
> > I have a question on predict command.
> >
> > If I run a poisson regression such as
> >
> > poisson absdays male black hispanic bluecollarworkers
> > nohealthinsurance backpain comorbidconditions
> >
> > where all the independent variables are dummy
> > variables.
> >
> > absdays=constant + b1*male + b2*black + b3*hispanic +
> > b4*bluecollarworkers + b5*nohealthinsurance +
> > b6*backpain + b7*comorbidconditions
> >
> > If from the output only black, backpain, and
> > comorbidconditions were statistically significant, can
> > I run the predict command to obtain
> > the predicted number of absdays using only the
> > significant variables?
> >
> > In otherwords can I get the predicted absdays as
> >
> > constant + b2*black + b6*backpain +
> > b7*comorbidconditions
> >
> > I know one option is to use the generate command but I
> > would like to know if we can do this using predict
> > command too.
> 
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index