Anda di halaman 1dari 6

Designed by Jamie DeCoster & Anne-Marie Iselin 2005-11-12. This and other Excel spreadsheets are available at http://www.

s
Last modified 2009-08-25

This spreadsheet produces graphs and tests to explore the nature of a 2-way interaction in regression.
You must first enter the coefficients from the regression equation in the dark blue
Then you must enter the maximum and minimum values for X1 (the IV on the X-axis) in the purple boxes.
Then you must enter the values X2 will take on the different lines in the plot, along with labels for these lines in the
Finally, if you want to obtain tests of whether each simple slope is significant, you must enter the sample size and t
Graphs will appear in the worksheet entitled "Graphs." The middle three values will be used in the 3-line graph.
Estimates of each simple slope coefficient and a test whether it is significantly different from zero will appearin the

X2 Coefficient
X1 Coefficient (IV represented by
Constant (IV on the X-axis) separate lines)
4 6 2

Minimum value for Maximum value for


X1 X1
-1 1

Values for X2 Label for X2 value


-2 Very Low X2
-1 Low X2
0 Med X2 Values used for 3-line graph
1 High X2
2 Very High X2

Variance of Variance of
Sample Size X1 Coefficient X1*X2 Coefficient
100 2 0.4
This and other Excel spreadsheets are available at http://www.stat-help.com

lore the nature of a 2-way interaction in regression.


sion equation in the dark blue boxes.
alues for X1 (the IV on the X-axis) in the purple boxes.
different lines in the plot, along with labels for these lines in the maroon boxes.
imple slope is significant, you must enter the sample size and the necessary coefficient covariances in the light blue boxes.
s." The middle three values will be used in the 3-line graph.
st whether it is significantly different from zero will appearin the worksheet entitled "Estimates."

X1*X2 Coefficient
-3

used for 3-line graph

Covariance between X1 Coefficient


and X1*X2 Coefficient
-0.1
e light blue boxes.
The graphs are unprotected so you can add a title and labels on the axes. You can also edit other features of the graphs.

12

10

4
Low X2
2
Med X2
0 High X2

-2

-4

-6

-8
-1 1

15

10

5
Very Low X2
Low X2
0
Med X2
High X2
-5 Very High X2

-10

-15
-1 1
eatures of the graphs.

Predicted Values for 3-Line Graph


-1 1
Low X2 -7 11
Med X2 -2 10
High X2 3 9

Predicted Values for 5-Line Graph


-1 1
Very Low X2 -12 12
Low X2 -7 11
Med X2 -2 10
High X2 3 9
Very High X2 8 8
Slope between X1 Slope
X2 Label X2 value and Y at this value standard error t statistic df p-value
Very Low X2 -2 12 2 6 96 3.485E-008
Low X2 -1 9 1.6124515497 5.58156306 96 2.206E-007
Med X2 0 6 1.4142135624 4.24264069 96 5.093E-005
High X2 1 3 1.4832396974 2.02259959 96 0.04589603
Very High X2 2 0 1.788854382 0 96 1

Anda mungkin juga menyukai