Learning Objectives For models with dichotomous intendant variables, you will learn: Basic terminology from ANOVA framework How to identify main effects,

Slides:



Advertisements
Similar presentations
The Regression Equation  A predicted value on the DV in the bi-variate case is found with the following formula: Ŷ = a + B (X1)
Advertisements

Issues in factorial design
SPSS Session 5: Association between Nominal Variables Using Chi-Square Statistic.
Lecture 28 Categorical variables: –Review of slides from lecture 27 (reprint of lecture 27 categorical variables slides with typos corrected) –Practice.
Soc 3306a Lecture 6: Introduction to Multivariate Relationships Control with Bivariate Tables Simple Control in Regression.
Dr George Sandamas Room TG60
Multiple Regression Involves the use of more than one independent variable. Multivariate analysis involves more than one dependent variable - OMS 633 Adding.
Introduction the General Linear Model (GLM) l what “model,” “linear” & “general” mean l bivariate, univariate & multivariate GLModels l kinds of variables.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Intro to Statistics for the Behavioral Sciences PSYC 1900
Intro to Statistics for the Behavioral Sciences PSYC 1900 Lecture 14: Factorial ANOVA.
Summary of Quantitative Analysis Neuman and Robson Ch. 11
Week 14 Chapter 16 – Partial Correlation and Multiple Regression and Correlation.
Simple Linear Regression Analysis
Discriminant Analysis Testing latent variables as predictors of groups.
Leedy and Ormrod Ch. 11 Gray Ch. 14
ANCOVA Lecture 9 Andrew Ainsworth. What is ANCOVA?
Elements of Multiple Regression Analysis: Two Independent Variables Yong Sept
Chapter 13: Inference in Regression
Understanding Multivariate Research Berry & Sanders.
Moderation & Mediation
Logit model, logistic regression, and log-linear model A comparison.
ALISON BOWLING THE GENERAL LINEAR MODEL. ALTERNATIVE EXPRESSION OF THE MODEL.
Analysis of Covariance, ANCOVA (GLM2)
Statistics and Quantitative Analysis U4320 Segment 12: Extension of Multiple Regression Analysis Prof. Sharyn O’Halloran.
Curvilinear 2 Modeling Departures from the Straight Line (Curves and Interactions)
Lab 5 instruction.  a collection of statistical methods to compare several groups according to their means on a quantitative response variable  Two-Way.
Factorial Analysis of Variance
ANCOVA. What is Analysis of Covariance? When you think of Ancova, you should think of sequential regression, because really that’s all it is Covariate(s)
General Linear Model.
1 Psych 5510/6510 Chapter 13: ANCOVA: Models with Continuous and Categorical Predictors Part 3: Within a Correlational Design Spring, 2009.
Handout Eight: Two-Way Between- Subjects Design with Interaction- Assumptions, & Analyses EPSE 592 Experimental Designs and Analysis in Educational Research.
ANCOVA.
29 October 2009 MRC CBU Graduate Statistics Lectures 4: GLM: The General Linear Model - ANOVA & ANCOVA1 MRC Cognition and Brain Sciences Unit Graduate.
Regression. Why Regression? Everything we’ve done in this class has been regression: When you have categorical IVs and continuous DVs, the ANOVA framework.
1. Refresher on the general linear model, interactions, and contrasts UCL Linguistics workshop on mixed-effects modelling in R May 2016.
Categorical Variables in Regression
Nonparametric Statistics
Final Project Reminder
BINARY LOGISTIC REGRESSION
Unit 3: Inferences about a Single Mean (1 Parameter models)
Learning Objectives For two quantitative IVs, you will learn:
Final Project Reminder
Logistic Regression APKC – STATS AFAC (2016).
Dr. Siti Nor Binti Yaacob
Applied Biostatistics: Lecture 2
Experimental Design.
Basics of Group Analysis
Analysis of Covariance, ANCOVA (GLM2)
Multiple Regression.
Week 14 Chapter 16 – Partial Correlation and Multiple Regression and Correlation.
Introduction to the General Linear Model (GLM)
Analysis of Covariance (ANCOVA)
Multiple Regression.
Regression.
Statistics for the Social Sciences
Interactive Models: Two Quantitative Variables
POSC 202A: Lecture Lecture: Substantive Significance, Relationship between Variables 1.
Two Way ANOVAs Factorial Designs.
Multiple logistic regression
CHAPTER 29: Multiple Regression*
Nonparametric Statistics
Soc 3306a: ANOVA and Regression Models
Multiple Regression BPS 7e Chapter 29 © 2015 W. H. Freeman and Company.
LEARNING OUTCOMES After studying this chapter, you should be able to
Categorical Data Analysis Review for Final
Soc 3306a Lecture 11: Multivariate 4
15.1 The Role of Statistics in the Research Process
Econometrics I Professor William Greene Stern School of Business
InferentIal StatIstIcs
Presentation transcript:

Unit 16: Inferences about Two Dichotomous Predictors and their Interaction

Learning Objectives For models with dichotomous intendant variables, you will learn: Basic terminology from ANOVA framework How to identify main effects, simple effects and interactions in table of means and figures Two coding systems for dichotomous variables (centered vs. dummy) How to link coefficients from interactive models with each coding system to table of means and figures (both directions) How to calculate simple effects How to write up and display results

An Example Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 Attitudes toward abortion as a function Sex and Religion Sex: Male vs. female Religion: Catholic vs. Jewish Attitude: 1–10 with higher scores indicating more permissive attitudes Equal n=20 in each cell. N=80 Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5

Terms and Brief definitions Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Common terminology: One-way ANOVA, Two-way ANOVA, Three-way ANOVA; 2 X 2 ANOVA; 2 X 3 X 2 ANOVA; Factorial ANOVA; Cell Mean: The mean of a group of participants at specific levels on each factor (e.g., Catholic men, Jewish women, etc) Marginal Mean: The mean of cell means across a row or column Grand Mean: The mean of all cell means Unweighted vs. weighted means

Terms and Brief definitions Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Main effect: The “average” effect of an IV on the DV across the levels of another IV in the model [The effect of an IV at the average level of another IV]. Evaluated with marginal means for IV Simple effect: The effect of an IV on the DV at a specific level of the other IV. Evaluated with cell means for focal IV at specific level of other IV (moderator) Interaction: The simple effect of a (focal) IV on the DV differs across the levels of another (moderator) IV in the model

Describing Effects Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 Describe the magnitude of the main effect of Sex on Attitudes Women have 3 points more permissive attitudes about abortion than men Describe the magnitude of the main effect of Religion on Attitudes Jews have 1 point more permissive attitudes about abortion than Catholics

Describing Effects Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 Describe the magnitude of the simple effects of Sex on Attitudes Among Catholics, women have 2 points more permissive attitudes about abortion than men Among Jews, women have 4 points more permissive attitudes about abortion than men

Describing Effects Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 Describe the magnitude of the simple effects of Religion on Attitudes Among men, there is no different in attitudes between Jews and Catholics Among women, Jews have 2 points more permissive attitudes about abortion than Catholics

Describing Effects Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 Does there appear to be an interaction between Sex and Religion? Why or why not? Yes, there does appear to be an interaction. The simple effects of Sex appear to be different across Jews (4 points) than Catholics (2 points). Alternatively, the simple effects of Religion appear to be different across women (2 points) and men (0 points) Of course, you cant tell if the interaction is significant by looking at the data descriptively, you have to test the interaction.

Describing Effects Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 How might you quantify the magnitude of the interaction? The simple effect of Sex increases by 2 points from Catholics (2) to Jews (4) The simple effect of Religion increases by 2 points from men (0) to women (2) This will be the parameter estimate for the interaction!

There are two common options for coding the regressors for categorical IVs : Dummy codes and Centered codes. Centered cSex cRel Male -0.5 Catholic -0.5 Female 0.5 Jewish 0.5 Dummy Sex Rel Male 0 Catholic 0 Female 1 Jewish 1 The two systems yield essentially the same result (except for b0) for additive models

Link parameter estimate b0, b1, & b2 to the figure Centered codes: cSex cRel Male -0.5 Catholic -0.5 Female 0.5 Jewish 0.5 Attitudes = 4.5 + 3*cSexFvM + 1*cRelJvC Link parameter estimate b0, b1, & b2 to the figure

Centered codes for Additive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Centered codes: cSex cRel Male -0.5 Catholic -0.5 Female 0.5 Jewish 0.5 Attitudes = 4.5 + 3*cSexFvM + 1*cRelJvC Link parameter estimate b0, b1, & b2 to the table of means b0 is the predicted value for attitudes for 0 on both regressors. This is the grand mean b1 is the effect of Sex. It will be forced to be constant across religions (6 – 3 = 3) b2 is the effect of Religion constant across sexes (5 – 4 = 1)

Additive Model Constraints Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Centered: Attitudes = 4.5 + 3*cSexFvM + 1*cRelJvC What constraints were imposed in the additive model? The effect of Sex was constrained to be the same in both Catholics and Jews. 3 is the “best” parameter value b/c it is the average of the two simple effects of sex (2 vs. 4). The effect of Religion was constrained to be the same in both men and women. 1 is the “best” parameter value b/c it is the average of the two simple effects of Religion(0 vs. 2).

Interactive Models Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 How do you relax this constraint and test the interaction between Sex and Religion? Regress Attitudes on Sex, Religion and their interaction (calculated as the product of Sex * Religion) Attitudes = b0 + b1*Sex + b2*Religion + b3*SexXReligion The test of the b3 coefficient against zero is the test of the interaction (Alternatively: the comparison of this model to the compact model: Attitudes = b0 + b1*Sex + b2*Religion

In interactive models, centered codes and dummy codes yield very different results b/c they are testing different questions You will use centered codes when you want to test main effects and interactions. The parameter estimate for the regressors coding for the IVs test the main effect of each IV. This is the approach you will almost always use for your primary analysis. [SPSS does this automatically for you for factors in their GLM function but not in Regression] You will use dummy codes when you want to test simple effects. The parameter estimate for the regressors coding for the IVs will test a specific simple effect of each IV. You will often need to recode your IVs more than once to test all relevant simple effects. The parameter estimate for the interaction and its interpretation is the same across these systems.

Centered codes for Interactive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Centered codes: cSex cRel Male -0.5 Catholic -0.5 Female 0.5 Jewish 0.5 Attitudes = 4.5 + 3*cSexFvM + 1*cRelJvC + 2*cSexFvMXcRelJvC Link parameter estimate b0, b1, & b2 to the table of means b0 is the predicted value for attitudes for 0 on all regressors. This is the grand mean b1 is the main effect of Sex (6 – 3 = 3) b2 is the main effect of Religion(5 – 4 = 1)

Centered codes for Interactive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Centered codes: cSex cRel Male -0.5 Catholic -0.5 Female 0.5 Jewish 0.5 Attitudes = 4.5 + 3*cSexFvM + 1*cRelJvC + 2*cSexFvMXcRelJvC Link b3 to the table of means considering Sex as focal variable b3 is the change in the magnitude of the (simple) Sex effect across religions Jewish Catholic (7 – 3) – (5 – 3) = 2

Centered codes for Interactive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Centered codes: cSex cRel Male -0.5 Catholic -0.5 Female 0.5 Jewish 0.5 Attitudes = 4.5 + 3*cSexFvM + 1*cRelJvC + 2*cSexFvMXcRelJvC Link b3 to the table of means considering Religion as focal variable b3 is the change in the magnitude of the (simple) Religion effect across Sexes Female Male (7 – 5) – (3 – 3) = 2

Centered codes for Interactive Model cSex cReligion Male -0.5 Catholic -0.5 Female 0.5 Jewish 0.5 Attitudes = 4.5 + 3*cSexFvM + 1*cRelJvC + 2*cSexXFvMcRelJvC Link all coefficients to figure

Centered codes for Interactive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Centered codes: cSex cRel Male -0.5 Catholic -0.5 Female 0.5 Jewish 0.5 Attitudes = 4.5 + 3*cSexFvM + 1*cRelJvC + 2*cSexFvMXcRelJvC You can use the regression equation to reproduce cell means Catholic men: 4.5 + 3*(-.5) + 1*(-.5) + 2*(-.5)*(-.5) = 3 Jewish women: 4.5 + 3*(.5) + 1*(.5) + 2*(.5)*(-.5) = 7 Etc…..

Dummy codes for Interactive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Dummy codes: Sex Rel Male 0 Catholic 0 Female 1 Jewish 1 Attitudes = 3 + 2*SexFvM + 0*RelJvC + 2*SexFvMXRelJvC Link parameter estimate b0, b1, & b2 to the table of means b0 is the predicted value for attitudes for 0 on all regressors. This is predicted value for male Catholics b1 is the simple effect of Sex for Catholics (coded 0) (5 – 3 = 2) b2 is the simple effect of Religion for men (3 – 3 = 0)

Dummy codes for Interactive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Dummy codes: Sex Rel Male 0 Catholic 0 Female 1 Jewish 1 Attitudes = 3 + 2*SexFvM + 0*RelJvC + 2*SexFvMXRelJvC Link b3 to the table of means considering Sex as focal variable b3 is the change in the magnitude of the simple Sex effect across religions Jewish Catholic (7 – 3) – (5 – 3) = 2

Dummy codes for Interactive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Dummy codes: Sex Rel Male 0 Catholic 0 Female 1 Jewish 1 Attitudes = 3 + 2*SexFvM + 0*RelJvC + 2*SexFvMXRelJvC Link b3 to the table of means considering Religion as focal variable b3 is the change in the magnitude of the Religion effect across Sexes Female Male (7 – 5) – (3 – 3) = 2

Dummy codes for Interactive Model Sex Rel Male 0 Catholic 0 Female 1 Jewish 1 Attitudes = 3 + 2*SexFvM + 0*RelJvC + 2*SexFvMXRelJvC Link all coefficients to figure

Dummy codes for Interactive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Dummy codes: Sex Rel Male 0 Catholic 0 Female 1 Jewish 1 Attitudes = 3 + 2*SexFvM + 0*RelJvC + 2*SexFvMXRelJvC You can use the regression equation to reproduce cell means Catholic men: 3 + 2*(0) + 0*(0) + 2*(0)*(0) = 3 Jewish women: 3 + 2*(1) + 0*(1) + 2*(1)*(1) = 7 Etc…..

Dummy codes for Interactive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Dummy codes: Sex Rel Male 0 Catholic 0 Female 1 Jewish 1 Attitudes = 3 + 2*SexFvM + 0*RelJvC + 2*SexFvMXRelJvC The above dummy coding system gave us the above regression equation where b1 was the simple effect of Sex in Catholics. How do we get the simple effect of Sex in Jews? Recode Religion with Dummy codes but set Jewish = 0 and Catholic = 1. Now the sex effect will be the simple effect in Jews because Jews = 0

Dummy codes for Interactive Model Catholic Jewish All Male 3 3 3.0 Female 5 7 6.0 All 4.0 5.0 4.5 Dummy codes: Sex Rel Male 0 Catholic 1 Female 1 Jewish 0 What will the regression equation be now? Attitudes = 3 + 4*SexFvM + 0*RelCvJ + -2*SexFvMXRelCvJ Recoding the moderator changes the simple effect for the focal variable. With dummy codes, the parameter estimate for the focal variable is always the simple effect when the moderator = 0

Text Results We analyzed attitudes about abortion in a general linear model with centered, unit-weighted regressors for Sex (Female vs. Male), Religion (Jewish vs. Catholic) and their interaction. We report both raw GLM coefficients (b) and partial eta-squared (p2) to document effect sizes. The main effect of Sex was significant, b=3, p2= 0.##, t(76) = #.##, p = 0.###, indicating that women’s attitudes about abortion were 3 points higher than men on average. However, the Sex X Religion interaction was also significant, b=2, p2= 0.##, t(76) = #.##, p = 0.### (see Figure 1). This indicates that the magnitude of the Sex effect was significantly greater in Jews (b = 4, p2= 0.##, p= 0.### ) than in Catholics (b=2, p2= 0.##, p=0.###).

Figure What else should be included in this publication quality figure? Confidence intervals (+1 SE) Raw data points (4 columns, jittered) Notation to indicate simple effects for focal variable?

On Your Own: Certain Uncertain All Sober 100 120 110 Drunk 90 90 90 Centered codes: cGroup cThreat Sober -0.5 Certain -0.5 Drunk 0.5 Uncertain 0.5 FPS = b0 + b1*cGroup + b2*cThreat + b3*cGroup*cThreat FPS = 200 + -20*cGroup + 10*cThreat + -20*cGroup*cThreat

On Your Own: Certain Uncertain All Sober 100 120 110 Intoxicated 90 90 90 All 95 105 200 Centered codes: Beverage Group Threat Sober 0 Certain 0 Drunk 1 Uncertain 1 FPS = b0 + b1*Group + b2*Threat + b3*Group*Threat FPS = 100+ -10*Group + 20*Threat + -20*Group*Threat

Learning Outcomes For models with dichotomous intendant variables, you learned: Basic terminology from ANOVA framework How to identify main effects, simple effects and interactions in table of means and figures Two coding systems for dichotomous variables (centered vs. dummy) How to link coefficients from interactive models with each coding system to table of means and figures (both directions) How to calculate simple effects How to write up and display results