Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: Twoway quadratic prediction plots with CIs in a multivariate regression setting

From   Michael Ingenhaag <[email protected]>
To   [email protected]
Subject   Re: st: Twoway quadratic prediction plots with CIs in a multivariate regression setting
Date   Thu, 26 Jul 2012 10:51:26 +0200

Thank you Scott.

I was using something similar, but instead of your proposition

The problem with the marginsplot command is, that I cannot combine other graphs as I would like to put graphs of two different models in one plot, i.e. for an unconditional and a conditional model. Hence, I was thinking about qfitci.

Any further suggestions?

On 25.07.2012 15:49, Scott Merryman wrote:
Something like this:

webuse nhanes2.dta
reg iron c.age##c.age i.race zinc
margins , at(age = (10(10)80) (base) race (zero) zinc) vsquish


On Wed, Jul 25, 2012 at 8:30 AM, Michael Ingenhaag
<[email protected]> wrote:

I'd like to construct quadratic prediction plots with Cis based on a
multivariate regression, i.e. include additional regressors to the one on
which the quadratic fit is based on.
Essentially, I want to run the following regression:

/reg y c.age c.age#c.age i.male i.country_ind/ /num_hh_children income/

I'd like to have the prediction of the age polynomial based on the above
regression setting all other variables, respectively, to their base level
(factor variables) or zero if continuous.
Based on this prediction I need a plot similar to the one produced by

The Stata command /qfitci/ does only allow for one regressor that is used to
compute the quadratic prediction.

Does anyone have any suggestions?

Michael Ingenhaag
*   For searches and help try:

Michael Ingenhaag
PhD Candidate and Assistant

Faculty of Business and Economics
Institute of Health Economics and Management (IEMS)
University of Lausanne
CH-1015 Lausanne

Phone:  (41) 021 692 3656
Fax:    (41) 021 692 3655

Email:  [email protected]

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index