[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: plot predicted effects after regression
Thanks so much. Your solution is great, but if I
remember correctly, I think Stata has a ready and very
simple command for post-estimation graphing of the
predicted effects. I will try to look further myself.
Thanks so much again.
--- Thomas Trikalinos <firstname.lastname@example.org> wrote:
> So you need predicted values on the
> VariableOfInterest adjusting at the
> mean level of continuous covariates, and the
> reference category of
> categoric covariates.
> A simple but not so elegant solution is
> . gen PredY = Constant + beta1* VariableOfInterest1
> beta2*MeanContinuousCovariate2 (or the
> corresponding analogue for a
> logit/probit/poisson etc regression)
> [first run . egen MeanContinuousCovariate2 =
> Constant and beta1, beta2 are from the regression
> output. All
> Categorical covariate terms are zero (this would be
> your reference
> category, right?) and all the continuous covariate
> terms are
> incorporated using their mean level. This way you
> adjust for the
> reference category for categoric covariates and for
> the mean value of
> continuous covariates.
> You most probably have more than one continuous
> covariates; just put in
> as many terms as you need. If you have different
> functions of the
> VariableOfInterest (eg quadratic or cubic terms) put
> them in as more
> This is a crude workaround I use. I'm confident that
> people know
> something better and more elegant, though...
> On May 8, 2004, at 1:37, yumin sheng wrote:
> > Dear all,
> > This is a real simple question, but I just
> > remember the command off the top of my head. Can
> > anyone tell me how to plot the predicted effects
> of a
> > variable after running the regressions, while
> > all the other independent variables constant.
> Thanks a
> > bundle!
> > Best,
> > yumin
> > __________________________________
> > Do you Yahoo!?
> > Win a $20,000 Career Makeover at Yahoo! HotJobs
> > *
> > * For searches and help try:
> > *
> > * http://www.stata.com/support/statalist/faq
> > * http://www.ats.ucla.edu/stat/stata/
> * For searches and help try:
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
* For searches and help try: