--- 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/