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

From |
Maarten buis <[email protected]> |

To |
[email protected] |

Subject |
Re: FW: st: mfx after xtnbreg and how to compute predicted Y |

Date |
Mon, 20 Oct 2008 19:14:08 +0100 (BST) |

--- Pek-Hooi Soh <[email protected]> wrote: > Two follow up questions: 1) to calculate the marginal effect for a > two-way interaction term. Do I run IRR option and take the IRR > coefficients to compute the effect, equivalent to (a3 + a4 x2) as > follow? > > Say, E[y | x] = exp(a1 + a2 x2 + a3 x3 + a4 x2Xx3 ) > > Then the proportionate change in the conditional mean due to a > one-unit change in x3 equals (a3 + a4 x2). An interaction effect implies that there is no single effect of x3, but as many effects as there are values of x2. If you still want to present a single effect of x3 then you will have to choose to fix the value of x2 at some value, for instance the mean. The easiest way to do that is to scale x2 in such a way that it is zero at that value. If you want to know the effect of x3 when x2 has it's average value then you can create a new variable x2prime in the following way: sum x2 if !missing(x3, y) gen x2prime = x2 - r(mean) gen x2primeXx3 = x2prime * x3 And include x2prime x2primeXx3 in your model instead of x2 and x2Xx3. a3 is now the effect of x3 when x2 has it's average value. > 2) I need to compute > Y2(X1 | other_X_at_mean_value) > Y1(X1+1std_dev | other_X_at_mean_value) > calculate Y2-Y1. > > How do I use the options predict to have the values X1 and X1 + 1 std > dev ? see -help lincom- and -help adjust-. Alternatively you can devide x1 by it's standard deviation and you will get with -irr- the incidence ratio for a standard deviation change in x1. -- Maarten ----------------------------------------- Maarten L. Buis Department of Social Research Methodology Vrije Universiteit Amsterdam Boelelaan 1081 1081 HV Amsterdam The Netherlands visiting address: Buitenveldertselaan 3 (Metropolitan), room N515 +31 20 5986715 http://home.fsw.vu.nl/m.buis/ ----------------------------------------- Send instant messages to your online friends http://uk.messenger.yahoo.com * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**RE: FW: st: mfx after xtnbreg and how to compute predicted Y***From:*"Pek-Hooi Soh" <[email protected]>

**References**:**FW: st: mfx after xtnbreg and how to compute predicted Y***From:*"Pek-Hooi Soh" <[email protected]>

- Prev by Date:
**RE: st: twoway scatter ..., yscale(log) with axis on log and arithmetic scales** - Next by Date:
**st: uninstall ado package** - Previous by thread:
**FW: st: mfx after xtnbreg and how to compute predicted Y** - Next by thread:
**RE: FW: st: mfx after xtnbreg and how to compute predicted Y** - Index(es):

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