Repeated-measures designs (GLM 4) Chapter 13. Terms Between subjects = independent – Each subject gets only one level of the variable. Repeated measures.

Slides:



Advertisements
Similar presentations
To go further: intra- versus interindividual variability.
Advertisements

Within Subjects Designs
MANOVA: Multivariate Analysis of Variance
Analysis of variance (ANOVA)-the General Linear Model (GLM)
Lab3: writing up results and ANOVAs with within and between factors 1.
C82MST Statistical Methods 2 - Lecture 7 1 Overview of Lecture Advantages and disadvantages of within subjects designs One-way within subjects ANOVA Two-way.
ANOVA Analysis of Variance: Why do these Sample Means differ as much as they do (Variance)? Standard Error of the Mean (“variance” of means) depends upon.
Factorial ANOVA 2-Way ANOVA, 3-Way ANOVA, etc.. Factorial ANOVA One-Way ANOVA = ANOVA with one IV with 1+ levels and one DV One-Way ANOVA = ANOVA with.
ANCOVA Psy 420 Andrew Ainsworth. What is ANCOVA?
Experimental Design Terminology  An Experimental Unit is the entity on which measurement or an observation is made. For example, subjects are experimental.
Lecture 9: One Way ANOVA Between Subjects
Factorial Designs More than one Independent Variable: Each IV is referred to as a Factor All Levels of Each IV represented in the Other IV.
Repeated Measures ANOVA Used when the research design contains one factor on which participants are measured more than twice (dependent, or within- groups.
Basic Analysis of Variance and the General Linear Model Psy 420 Andrew Ainsworth.
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
ANCOVA Lecture 9 Andrew Ainsworth. What is ANCOVA?
ANOVA Analysis of Variance.  Basics of parametric statistics  ANOVA – Analysis of Variance  T-Test and ANOVA in SPSS  Lunch  T-test in SPSS  ANOVA.
Lab 2: repeated measures ANOVA 1. Inferior parietal involvement in long term memory There is a hypothesis that different brain regions are recruited during.
Repeated Measures Design
ANOVA Greg C Elvers.
Repeated Measures Chapter 13.
Stats Lunch: Day 7 One-Way ANOVA. Basic Steps of Calculating an ANOVA M = 3 M = 6 M = 10 Remember, there are 2 ways to estimate pop. variance in ANOVA:
Chapter 11 HYPOTHESIS TESTING USING THE ONE-WAY ANALYSIS OF VARIANCE.
TAUCHI – Tampere Unit for Computer-Human Interaction ERIT 2015: Data analysis and interpretation (1 & 2) Hanna Venesvirta Tampere Unit for Computer-Human.
Experimental Design: One-Way Correlated Samples Design
Psychology 301 Chapters & Differences Between Two Means Introduction to Analysis of Variance Multiple Comparisons.
Randomized Block Design (Kirk, chapter 7) BUSI 6480 Lecture 6.
Multivariate Analysis. One-way ANOVA Tests the difference in the means of 2 or more nominal groups Tests the difference in the means of 2 or more nominal.
 Slide 1 Two-Way Independent ANOVA (GLM 3) Chapter 13.
Inferential Statistics
Chapter 10: Analyzing Experimental Data Inferential statistics are used to determine whether the independent variable had an effect on the dependent variance.
INTRODUCTION TO ANALYSIS OF VARIANCE (ANOVA). COURSE CONTENT WHAT IS ANOVA DIFFERENT TYPES OF ANOVA ANOVA THEORY WORKED EXAMPLE IN EXCEL –GENERATING THE.
Repeated-measures ANOVA When subjects are tested on two or more occasions “Repeated measures” or “Within subjects” design Repeated Measures ANOVA But,
Mixed-Design ANOVA 5 Nov 2010 CPSY501 Dr. Sean Ho Trinity Western University Please download: treatment5.sav.
ANOVA: Analysis of Variance.
Chapter 14 Repeated Measures and Two Factor Analysis of Variance
Experimental Research Methods in Language Learning
Terms  Between subjects = independent  Each subject gets only one level of the variable.  Repeated measures = within subjects = dependent = paired.
+ Comparing several means: ANOVA (GLM 1) Chapter 11.
Analysis of Covariance (ANCOVA)
Latent Growth Modeling Byrne Chapter 11. Latent Growth Modeling Measuring change over repeated time measurements – Gives you more information than a repeated.
Slide 1 Mixed ANOVA (GLM 5) Chapter 15. Slide 2 Mixed ANOVA Mixed: – 1 or more Independent variable uses the same participants – 1 or more Independent.
+ Comparing several means: ANOVA (GLM 1) Chapter 10.
Mixed ANOVA (GLM 5) Chapter 14. Mixed ANOVA Mixed: – 1 or more Independent variable uses the same participants (repeated measures) – 1 or more Independent.
Smoking Data The investigation was based on examining the effectiveness of smoking cessation programs among heavy smokers who are also recovering alcoholics.
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)
Chapter 13 Repeated-Measures and Two-Factor Analysis of Variance
Stats Lunch: Day 8 Repeated-Measures ANOVA and Analyzing Trends (It’s Hot)
Assumptions 5.4 Data Screening. Assumptions Parametric tests based on the normal distribution assume: – Independence – Additivity and linearity – Normality.
ONE-WAY BETWEEN-GROUPS ANOVA Psyc 301-SPSS Spring 2014.
Comparing Two Means Chapter 9. Experiments Simple experiments – One IV that’s categorical (two levels!) – One DV that’s interval/ratio/continuous – For.
Smith/Davis (c) 2005 Prentice Hall Chapter Fifteen Inferential Tests of Significance III: Analyzing and Interpreting Experiments with Multiple Independent.
Linear Regression Chapter 7. Slide 2 What is Regression? A way of predicting the value of one variable from another. – It is a hypothetical model of the.
Handout Ten: Mixed Design Analysis of Variance EPSE 592 Experimental Designs and Analysis in Educational Research Instructor: Dr. Amery Wu Handout Ten:
Within Subject ANOVAs: Assumptions & Post Hoc Tests.
ANCOVA.
PROFILE ANALYSIS. Profile Analysis Main Point: Repeated measures multivariate analysis One/Several DVs all measured on the same scale.
Differences Among Groups
Mixed-Design ANOVA 13 Nov 2009 CPSY501 Dr. Sean Ho Trinity Western University Please download: treatment5.sav.
Between-Groups ANOVA Chapter 12. Quick Test Reminder >One person = Z score >One sample with population standard deviation = Z test >One sample no population.
Data Screening. What is it? Data screening is very important to make sure you’ve met all your assumptions, outliers, and error problems. Each type of.
Regression. Why Regression? Everything we’ve done in this class has been regression: When you have categorical IVs and continuous DVs, the ANOVA framework.
Multivariate vs Univariate ANOVA: Assumptions. Outline of Today’s Discussion 1.Within Subject ANOVAs in SPSS 2.Within Subject ANOVAs: Sphericity Post.
Don't Sweat the Simple Stuff (But it's not all Simple Stuff)
Comparing several means: ANOVA (GLM 1)
Analysis of Covariance, ANCOVA (GLM2)
PSY 307 – Statistics for the Behavioral Sciences
One way ANOVA One way Analysis of Variance (ANOVA) is used to test the significance difference of mean of one dependent variable across more than two.
Analysis of Variance: repeated measures
Chapter 13: Repeated-Measures Analysis of Variance
Presentation transcript:

Repeated-measures designs (GLM 4) Chapter 13

Terms Between subjects = independent – Each subject gets only one level of the variable. Repeated measures = within subjects = dependent = paired – Everyone gets all the levels of the variable.

RM ANOVA Now we need to control for correlated levels though … – Before all levels were separate people (independence) – Now the same person is in all levels, so you need to deal with that relationship.

RM ANOVA Sensitivity – Unsystematic variance is reduced. – More sensitive to experimental effects. Economy – Less participants are needed. – But, be careful of fatigue.

RM ANOVA Back to this term: Sphericity – Relationship between dependent levels is similar – Similar variances between pairs of levels – Similar correlations between pairs of levels Called compound symmetry The test for Sphericity = Mauchly’s – It’s an ANOVA of the DIFFERENCES in variance scores.

RM ANOVA You will NOT need to examine sphericity if you have only two levels. – Why?

RM ANOVA It is hard to meet the assumption of Sphericity – In fact, most people ignore it. – Why? Power is lessened when you do not have correlations between time points Generally, we find Type 2 errors are acceptable

RM ANOVA Basic data screening: accuracy, missing, outliers – Outliers note … now you will screen all the levels … why? Multicollinearity – only to make sure it’s not r =.999+, otherwise will not run Normality Linearity Homogeneity (NOT Levene’s, but Mauchly’s Sphericity) Homoscedasticity

RM ANOVA What to do if you violate it (and someone forces you to fix it)? – RM ANOVA with corrections – MANOVA – Multilevel Model

RM ANOVA Corrections – note these are DF corrections  which affect the cut off score (you have to go further)  which lowers the p-value

RM ANOVA Corrections: – Greenhouse-Geisser – Huynh-Feldt Which one? – When ε (sphericity estimate) is >.75 = Huynh- Feldt – Otherwise Greenhouse-Geisser

An Example Are some Halloween ideas worse than others? Four ideas tested by 8 participants: – Haunted house – Small costume (brr!) – Punch bowl of unknown drinks – House party Outcome: – Bad idea rating (1-12 where 12 is this was dummmbbbb). Slide 12

Variance Components

SStotal = Me – Grand mean (so this idea didn’t change) SSwithin = Me – My level mean (this idea didn’t change either) – BUT I’m in each level and that’s important, so …

Variance Components SSwithin = SSm + SSr – SSm = My level – GM (same idea) – SSr = SSw – SSm (basically, what’s left over after calculating how different I am from my level, and how different my level is the from the grand mean)

Variance Components SSbetween? – Represents individual differences between participants – SSb = SSt - SSw

How to R Data screening = run with wide format (if you can) Analysis = must be in long format, and you MUST have a participant number!

How to R To run repeated measures (traditional style), you can install ez to run ezANOVA.

How to R Output = ezANOVA(data, – dv = dv, – wid = participant number, – within = RM IV, – between = BN IV, – detailed = TRUE, – type = 3)

How to R Since we are using a different function, of course the summary is different. Just type output to see everything.

How to R F(3, 21) = 3.79, p =.03, n 2 =.33

Correction? Is it necessary? – Not by our data screening rules. How do corrections work?

Correction? Since HF <.75, I would use GG if I wanted to correct. NOTE: traditionally, people would report the corrected df values. – However, since these values are readily obvious here, you could just say Greenhouse-Geiser corrected p value and report the regular F. F(3, 21) = 3.79, p =.03, Greenhouse-Geiser p =.06

Effect Size Eta squared = formula is still SSm / SSt – But SSt is a big pain in RM

Effect Size Omega squared is evil. – Let’s just not.

Post Hocs Remember, this analysis is one-way repeated measures! – Because of the repeated measures part, we have to deal with independence in the post hoc as well.

Post Hoc Options Things to get straight: – Post hoc test: dependent t Why? Because it’s repeated measures data – Post hoc correction: Bonferroni Only the BON? – Tukey is another option but requires a bit more coding.

Post Hoc Options Bonferroni: pairwise.t.test(DV, IV, paired = TRUE, p.adjust.method = "bonferroni")

Post Hoc Options Bonferroni output

Post Hoc Options Tukey – First run test as MLM: – Load the nlme package. output2 = lme(Y ~ X, random = ~1 | participant number, data = data, method = “ML”)

Post Hoc Options Then, run a Tukey test using glht(). Load the multcomp() library. tukey = glht(saved output, linfct = mcp(IV = "Tukey")) summary(tukey)

Post Hoc Options

Two-Way Repeated Measures ANOVA Chapter 14

What is Two-Way Repeated Measures ANOVA? Two Independent Variables The same participants in all conditions. – Repeated Measures = ‘same participants’ – A.k.a. ‘within-subjects’ Remember, we talked about using #X# repeated measures to describe the analysis.

An Example Field (2013): Effects of advertising on evaluations of different drink types. – IV 1 (Drink): Beer, Wine, Water – IV 2 (Imagery): Positive, negative, neutral – Dependent Variable (DV): Evaluation of product from -100 dislike very much to +100 like very much) Slide 37

Slide 38 SS T Variance between all participants SS T Variance between all participants SS M Within-Participant Variance Variance explained by the experimental manipulations SS M Within-Participant Variance Variance explained by the experimental manipulations SS R Between- Participant Variance SS R Between- Participant Variance SS A Effect of Drink SS A Effect of Drink SS B Effect of Imagery SS B Effect of Imagery SS A  B Effect of Interaction SS A  B Effect of Interaction SS RA Error for Drink SS RA Error for Drink SS RB Error for Imagery SS RB Error for Imagery SS RA  B Error for Interaction SS RA  B Error for Interaction

How to R Set up the data – Add a participant number – Melt the data – Fix the columns – gl function gl(# levels, # cases in each level, labels = c(“stuff”)) gl(# levels, # cases in each level, # total cases, labels = c(“stuff”))

How to R Using the ezANOVA function, we will now just add more variables – You just wish it were the * operator. – RM is just generally a big pain. Change within to within =.(var, var)

Definitely need to fix (a) drink!

DRINK: F(2, 38) = 5.11, p =.01, Greenhouse-Geiser p =.03, n 2 =.12 IMAGERY: F(2, 38) = , p <.001, n 2 =.58 INTERACTION: F(4, 76) = 17.15, p =.03, n 2 =.14

All the effects! What now? – You can analyze main effects and interactions or just interactions – Given examples in code how to do both. – IMPT! Add interaction_average = TRUE, to get the correct main effects using Tukey!

Simple Effects Analysis Pick a direction – across or down! How many comparisons does that mean we have to do?

Simple Effects Analysis Same rules apply as two way between Split the data: – First SPLIT by the larger number of levels. – Let’s split by imagery, since they are equal here. Then analyze the data: – Analyze by only the other variable (drink). – Repeat for each data set.