Dummy Variables in Regression - Basic Statistics for Behavioral Sciences - Lecture Notes, Study notes of Statistics for Psychologists

Dummy Variables In Regression, Quantification of a Categorical Variable, Categorical Variable, Two Separate Regression Lines, Testing for Coincidence, Slope Dummy Variables are some points from this helpful lecture notes.

Typology: Study notes

2011/2012

Uploaded on 11/21/2012

ashakiran
ashakiran 🇮🇳

4.5

(27)

261 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Ch. 14. Dummy Variables in Regression
I. Introduction
A. Dummy Variable: Quantification of a categorical
variable (e.g., Male=1 and Female=0, Yes=1 and No=0,
and etc.).
B. If we have a categorical variable related to multiple
regression, we have two options: a separate regression
line for each category and one regression line with a
dummy variable.
C. Since we need numerical variables for multiple
regression, the quantification of a non-numerical
variable is necessary for one regression line with a
dummy variable.
II. Two Separate Regression Lines: Develop two separate lines.
A. Testing for Parallelism (Testing for Two Slopes)
Ho: β1M = β1F H1: β1M β1F
(or directional)
α: .05 or .01 t(crit): df = nM + nF - 4
TS
b1M - b1F
t(obs) = ────────────
SE(b1M-b1F)
(see the formulas on pp. 322-323)
Decision: If |t(obs)| t(crit), reject Ho.
*If we reject Ho, it means that we do not have
parallel lines (two slopes are different).
B. Testing Two Intercepts
Ho: β0M = β0F H1: β0M β0F
(or directional)
α: .05 or .01 t(crit): df = nM + nF - 4
TS
b0M - b0F
t(obs) = ────────────
SE(b0M-b0F)
(see the formulas on p. 325)
Decision: If |t(obs)| t(crit), reject Ho.
*If we reject Ho, it means that we do not have equal
intercept (two intercepts are different).
C. Testing for Coincidence
1. Testing for identical regression line for two
different categories.
2. If either two β1s or two β0s are different, we
reject Ho for testing coincidence.
Docsity.com
pf3

Partial preview of the text

Download Dummy Variables in Regression - Basic Statistics for Behavioral Sciences - Lecture Notes and more Study notes Statistics for Psychologists in PDF only on Docsity!

Ch. 14. Dummy Variables in Regression

I. Introduction A. Dummy Variable: Quantification of a categorical variable (e.g., Male=1 and Female=0, Yes=1 and No=0, and etc.). B. If we have a categorical variable related to multiple regression, we have two options: a separate regression line for each category and one regression line with a dummy variable. C. Since we need numerical variables for multiple regression, the quantification of a non-numerical variable is necessary for one regression line with a dummy variable.

II. Two Separate Regression Lines: Develop two separate lines. A. Testing for Parallelism (Testing for Two Slopes) Ho: β1M = β1F H1: β1M ≠ β1F (or directional) α: .05 or .01 t(crit): df = nM + nF - 4 TS b1M - b1F t(obs) = ──────────── SE(b1M-b1F) (see the formulas on pp. 322-323) Decision: If |t(obs)| ≥ t(crit), reject Ho.

*If we reject Ho, it means that we do not have parallel lines (two slopes are different). B. Testing Two Intercepts Ho: β0M = β0F H1: β0M ≠ β0F (or directional) α: .05 or .0 1 t(crit): df = nM + nF - 4 TS b0M - b0F t(obs) = ──────────── SE(b0M-b0F) (see the formulas on p. 325) Decision: If |t(obs)| ≥ t(crit), reject Ho.

*If we reject Ho, it means that we do not have equal intercept (two intercepts are different). C. Testing for Coincidence

  1. Testing for identical regression line for two different categories.
  2. If either two β 1 s or two β 0 s are different, we reject Ho for testing coincidence.

III. Single Regression Line with Dummy Variables A. Two types of dummy variable regression

  1. Intercept dummy variable: use a dummy variable only for the main effect ---> affects only Y- intercept. e.g., Y^ = 110 + 5X - 10Z, If Z=0, then Y^ = 110 + 5X. If Z=1, then Y^ = 100 + 5X.
  2. Slope dummy variables: use a dummy variable for the interaction effects ---> affects the slope. e.g., Y^ = 110 + 5X - 2XZ, If Z=0, then Y^ = 110 + 5X. If Z=1, then Y^ = 110 + 3X.
  3. If we combine the two types of dummy variable, it will affect both slope and intercept. e.g., Y^ = 110 + 5X - 10Z - 2XZ. If Z=0, then Y^ = 110 + 5X. If Z=1, then Y^ = 100 + 3X.
  4. If we are testing the interaction effect alone, we test the equality of the slope of two regression lines. If we are testing the main effect alone, we test the equality of Y-intercept of two regression lines. If we are testing both main and interaction effects, we test the coincidence of two regression lines. B. Testing Parallelism (Testing for Two Slopes)
  5. Develop two models: Full and Reduced. Full: Y = β 0 + β 1 X + β 2 Z + β 3 XZ + εi Reduced: Y = β 0 + β 1 X + β 2 Z + εi
  6. Run an F-test and test the interaction effect.
  7. If we reject Ho for the interaction effect, two slopes are different. C. Testing Two Intercepts
  8. Develop two models: Full and Reduced. Full: Y = β 0 + β 1 X + β 2 Z + εi Reduced: Y = β 0 + β 1 X + εi
  9. Run an F-test and test the main effect.
  10. If we reject Ho for the main effect, two intercepts are different. D. Testing Coincidence
  11. Develop two models: Full and Reduced. Full: Y = β 0 + β 1 X + β 2 Z + β 3 XZ + εi Reduced: Y = β 0 + β 1 X + εi
  12. Run an F-test and test both the main and