21
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent variables Jane E. Miller, PhD

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

Embed Size (px)

Citation preview

Page 1: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Visualizing shapes of interaction patterns between two categorical

independent variables

Jane E. Miller, PhD

Page 2: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Overview

• Three general shapes of interactions• What do interaction patterns between two

categorical independent variable look like?• From three-way association to regression model

with interactions

Page 3: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Review: What is an interaction?• The association between one independent variable (X1)

and the dependent variable (Y) differs depending on the value of a second independent variable (X2), known as the “modifier.”

• The presence of an interaction means that one can’t express the direction or size of the association between X1 and Y without also specifying the values of X2.

• In the lingo of “generalization, example, exception” (GEE), interactions are an exception to a general pattern among those variables.

Page 4: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Three general shapes of interaction patterns

1. Size: The effect of X1 on Y is larger for some values of X2 than for others;

2. Direction: the effect of X1 on Y is positive for some values of X2 but negative for other values of X2;

3. The effect of X1 on Y is non-zero (either positive or negative) for some values of X2 but is not statistically significantly different from zero for other values of X2.

Page 5: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Possible patterns: Interaction between two categorical independent variables• Example: Race and mother’s education as predictors of

birth weight– Birth weight (BW) in grams is the dependent variable;– The focal independent variable, mother’s educational

attainment, is an ordinal categorical variable;– The modifier, race, is a nominal independent variable.

• An interaction means that the association between mother’s education and birth weight differs by race .

Page 6: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Race main effect, but no education main effect or interaction

BW (g

.)

<HS =HS >HS

Mother’s educational attainment

BlackWhite

Page 7: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Education main effect, but no race main effect or interaction

<HS =HS >HS

Mother’s educational attainment

BlackWhite

BW (g

.)

Page 8: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Education and race main effects, but no interaction

BW (g

.)

<HS =HS >HS

Mother’s educational attainment

BlackWhite

Size of black/white birth weight gap is same in each education group.

Page 9: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Education and race main effects,and interaction: Size of gap

BW (g

.)

<HS =HS >HS

Mother’s educational attainment

BlackWhite

Size of black/white birth weight gap varies across education groups.

Page 10: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Education and race main effects, and interaction: Direction of gap

BW (g

.)

<HS =HS >HS

Mother’s educational attainment

BlackWhite

Direction of black/white birth weight gap varies across education groups.

Black>white Black<white Black<white

Page 11: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Summary: Some possible patterns of race, education, and birth weight

BW

<HS =HS >HS

BlackWhite

BW

<HS =HS >HS

BW

<HS =HS >HS

<HS =HS >HS<HS =HS >HS

BWBW

Interaction: magnitude Interaction: direction & magnitude

Main effect race Main effect educ Main effects race & educ

Page 12: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

From three-way associations to regression model with interactions

Page 13: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Create a three-way chart of the association

• To gain a sense of the shape of the relationship among your variables, graph the three-way association.

• E.g., the clustered bar charts was created based on differences in means of the DV (birth weight) according to the cross-tabulated categorical values of the two IVs (race and education).

Page 14: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Using the three-way chart to plan your multivariate model

• Check it against theory and previous studies.• Does it make sense?

• Anticipate which main effects and interaction terms are needed in the specification. • See which of the charts shown here best characterize

the pattern.• Note that other shapes of patterns are also possible.

Page 15: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Using the three-way chart to verify your multivariate results

• Check the pattern calculated from the estimated coefficients against the simple three-way chart.

• If the shapes are wildly inconsistent with one another, probably reflects an error in either – How you specified the model, or– How you calculated the overall pattern from the coefficients.

• Small changes in the shape or size of the pattern may occur due to controlling for other variables in your multivariate model.

Page 16: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Next steps toward a model with interactions

• The next module will show how to• Create variables needed for interaction,• Specify the model to formally test for interaction

effects.

• Later modules will explain how to calculate the overall shape of an interaction from the estimated coefficients.

Page 17: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Summary

• Real-world examples of interactions can take many forms, including various combinations of main effect and interactions.

• Interactions can occur in terms of – Direction– Magnitude

• A three-way chart can help identify which of the many theoretically possible shapes characterize the relationship among your IVs and DV.

Page 18: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Suggested resources• Chapter 16 of Miller, J. E. 2013. The Chicago Guide

to Writing about Multivariate Analysis, 2nd edition.

• Jaccard, J. J., and R. Turrisi. 2003. Interaction Effects in Multiple Regression. 2nd ed. Berkeley Hills, CA: Sage Publications.

• Chapters 8 and 9 of Cohen et al. 2003. Applied Multiple Regression/Correlation Analysis for the Behavioral Sciences, 3rd Edition. Florence, KY: Routledge.

Page 19: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Suggested online resources

• Podcasts on– Introduction to interactions– Creating variables and specifying regression models

to test for interactions– Calculating overall pattern from interaction

coefficients

Page 20: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Suggested practice exercises

• Study guide to The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition.– Questions #1 and 2 in the problem set for Chapter 16

Page 21: The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent

The Chicago Guide to Writing about Multivariate Analysis, 2nd edition.

Contact information

Jane E. Miller, [email protected]

Online materials available athttp://press.uchicago.edu/books/miller/multivariate/index.html