Professional Documents
Culture Documents
Teaching Week 9 - Lecture 9
Teaching Week 9 - Lecture 9
Dr Lawrence Ado-Kofie
11/09/2023 1
Lecture 9: Nonlinear Regression
Functions (SW - Chapter 8)
Outline:
11/09/2023 3
Interactions Between Independent
Variables (SW Section 8.3)
• Perhaps a class size reduction is more effective in some
circumstances than in others.
• Perhaps smaller classes help more if there are many English
learners, who need individual attention.
TestScore
• That is, might depend on PctEL
STR
Y
• More generally, might depend on X 2
X 1
Yi = β0 + β1D1i + β2D2i + ui
• D1i, D2i are binary
Yi = β0 + β1Di + β2Xi + ui
• Di is binary, X is continuous
Now change X:
Y + ΔY = β0 + β1D + β2(X + ΔX ) + β3[D × (X + ΔX)] (b)
Subtract: (b) – (a);
∆𝑌
∆𝑌 = 𝛽2 ∆𝑋 + 𝛽3 𝐷∆𝑋 or = 𝛽2 + 𝛽3 𝐷
∆𝑋
Yi = β0 + β1X1i + β2X2i + ui
• X1, X2 are continuous
TestScore
= −1.12 + .0012 PctEL
STR
PctEL
0 –1.12
20% –1.12 + .0012 × 20 = –1.10
11/09/2023 S&W Pearson 2020 16
Interactions Between Independent
Variables (SW Section 8.3)
(c) Interactions between two continuous variables
Example: TestScore, STR, PctEL (2 of 2)
TestScore = 686.3 − 1.12 STR − 0.67 PctEL + .0012( STR PctEL ),
(11.8) (0.59) (0.37) (0.019)