interactions Flashcards

1
Q

what is an interaction?

A

when the effects of one predictor on the outcome differ across levels of another predictor

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

categorical * continuous interaction general definition

A

the slope of the regression line between a continuous predictor and the outcome is different across levels of the categorical predictor

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

continuous * continuous interaction general definition

A

the slope of the regression line between a continuous predictor and the outcome changes as the values of a second predictor change - this is also called moderation

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

categorical * categorical interaction general definition

A

there is a difference in the difference between groups across levels of a second factor

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

interaction equation

A

yi = β0 + β1xi + β2zi + β3xizi + error

where:
β0 = intercept
xi = first predictor
zi = second predictor
β3 = interaction coefficient

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

categorical * continuous example and interpretation

A

RSQ: how years of service (x) predicts salary (y) in two different departments (z)
- accounts = 1 and managers = 0

β0 = predicted salary for a manager (=0) with 0 years of service

β1 = salary increase for each additional year of service for a manger

β2 = difference in salary for accounts and managers with 0 years of service

β3 = (difference in slope) change in salary for those in accounts for each year of service

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

categorical * continuous generic interpretation

A

where z is a binary predictor

β0 = value of y when x and z = 0
β1 = effect of x (slope) when z = 0 (reference group)
β2 = difference in intercept between z=1 and z=0, when x = 0
β3 = difference in slope across levels of z

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

simple slopes

A

method of plotting interactions

regression of the outcome y on a predictor x at specific values of an interacting z variable

calculation:
^y = (β1 + β3z)x + (β2z + β0) this means y = coefficients for slope + intercept

the above equation is easy when we have binary variables for x or z - when we have continuous variables the norm is to select + and - 1sd and the mean value

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

what are marginal effects

A

in a linear model with no interaction, the β values are called main effects
when their is an interaction term, the marginal effects are the β coefficients when the other variables = 0

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

what is a higher order term?

A

another word for an interaction term - it has a non-linear effect

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

centring predictors

A

for interpretation of models with interaction involves evaluating variables when another = 0 - this means that it is important that 0 is meaningful in someway.

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

centring predictors

A

for interpretation of models with interaction involves evaluating variables when another = 0 - this means that it is important that 0 is meaningful in someway.
centring shifts the 0 point on the model line - slope will be unaffected but the intercept point will change

e.g. if we mean centre, the mean values are made 0 so our intercept value is now the value for the mean of x and z

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

continuous * continuous generic interpretation

A

β0 = value of y when z and x = 0
β1 = effect of x (slope) when z = 0
β2 = effect of z (slope) when x = 0
β3 = change in slope of x on y across values of z (and vice versa)

β1 and 2 here are conditional effects, not main effects, as they are the effects at the value of 0 of the interacting variable.

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

continuous * continuous example and interpretation

A

how years of service (x) and employee performance (z) predicts salary

β0 = salary of someone with 0 years of service and an performance score of 0

β1 = change in salary for someone with a performance rating of 0 for each year of service

β2 = change in salary for someone with 0 years of service for each point increase of performance rating

β3 = for every year of service the relationship between performance rating and salary increases/decreases by…. (and vice versa)

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

probing interactions

A

in R we use the function probe_interaction to plot model interactions. simple slope ananlysis requires us to pick 2 points at which to test the slope

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

regions of significance (Johnsom-Neyman plots)

A

region of significance analysis identifies the threshold (values of z) at which the regression of y on z changes from non-significance to significance - we use a Johnson-Neyman plot to visualise this

16
Q

ordinal interactions

A
  • lines do not cross within plausible range of measurements of x
  • rank order of one predictor is maintained across levels of another
  • most common in observational studies
17
Q

Disordinal interactions

A
  • lines cross within the plausible range of x values
  • rank order of one predictor is not maintained across levels of another
  • more common in experimental work

crossing point equation:
for x = (-β1)/β3

18
Q

synergistic interactions

A

positive β1 and β2 = positive β3
- enhancing effect = interaction produces a bigger change than expected from the additive model

19
Q

antagonistic interaction

A

positive β1 and β2 = negative β3
- diminishing effect = strength of the combined effect weakens as the level of variables increases

20
Q

buffering interactions

A

positive β1 and negative β2 = +/- β3
- one variable weakens the effect of the other, the direction of the buffering is driven by the sign of the coefficient for the interaction

21
Q

categorical*categorical interaction example and interpretation (binary variables)

A

RSQ: study of average salaries in different departments (accounts = 0 and mangers = 1) in different locations (London = 0 and Birmingham = 1)

β0 = expected salary for accounts in London

β1 = difference in salary between accounts in London and Birmingham

β2 = difference in salary between accounts and managers in London

β3 = difference in salary between accounts and managers, between London and Birmingham

22
Q

categorical*categorical generic interpretation (binary variables)

A

β0 = value of y when x and z = 0 (reference groups)

β1 = difference between levels of x when z = 0

β2 = difference between levels of z when x = 0

β3 = difference between levels of x, across levels of z

23
Q

number of interaction terms equation:

A

(r-1)(c-1)

r = row = number of levels in first variable
c = column = number of levels in second variable

24
Q

multiple predictors model equation

A

for a 3x2 interaction

yi = β0 + (β1D1 + β2D2) + β3D3 + β4D13 + β5D23

where:
β1 and 2 are levels of the predictor with 3 levels
β3 is the other predictor
β4 and 5 are the interaction coefficients of β1 and 3, and β2 and 3 respectively