interactions in multiple regression Flashcards

(15 cards)

1
Q

What is a main effect in regression?

A

The effect of one predictor on the response, ignoring other variables.

Example: In Weight ~ SST + Depth, SST and Depth are main effects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an interaction effect?

A

When the effect of one predictor on the response depends on another predictor.

Example: The impact of SST on fish weight may differ by Sediment type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you specify an interaction in R?

A

A: Use : or * (includes main effects automatically):

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you interpret the coefficient for an interaction term?

A

Continuous × Categorical: Change in slope for the categorical level.

Example: LLL:GroupB = -0.1647 → Slope for Group B is 0.1647 less than Group A.

Continuous × Continuous: Change in slope per unit increase in the other predictor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the rules for including interactions?

A

Hierarchy Principle: Always include main effects if their interaction is in the model.

Order Matters: Interactions come last in model formulas.

Significance: If interaction is significant, keep its main effects regardless of their p-values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you test if an interaction is significant?

A

Check the p-value of the interaction term in summary() or Anova().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you visualize interactions?

A

Categorical × Continuous: Plot separate regression lines for each group.

Continuous × Continuous: Use 3D plots or heatmaps (e.g., quilt.plot()).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens if you omit a main effect but keep its interaction?

A

Violates hierarchy → Model is hard to interpret!

R will often warn you.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you select models with interactions?

A

Backward Selection: Remove non-significant interactions first, then main effects.

Forward Selection: Add main effects first, then interactions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does AIC handle interactions?

A

Prefers simpler models unless the interaction significantly improves fit.

Compare AIC values: Lower AIC = better model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What’s the difference between : and * in R formulas?

A

:: Only fits the interaction term (e.g., A:B).

: Fits main effects and interaction (e.g., AB = A + B + A:B).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you interpret a non-significant interaction?

A

The relationship between predictors is additive (no synergy/antagonism).

Action: Remove the interaction term and refit the model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What’s an example of a continuous × continuous interaction?

A

Model: Weight ~ Depth + SST + Depth:SST

Interpretation: The effect of Depth on Weight depends on SST (and vice versa).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you write the equation for an interaction model?

A

Categorical × Continuous:
Y=β0+β1GroupB+β2LLL+γ(GroupB×LLL)+ϵ

Continuous × Continuous:
Y=β0+β1X1 +β2X 2+β3(X1×X2)+ϵ

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why are interactions important?

A

They reveal context-dependent effects (e.g., drug efficacy varies by gender, or SST’s impact on fish weight varies by sediment type).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly