One-Way ANOVA Cohen Chapter 12 EDUC/PSY 6600

Similar documents
Introduction to the Analysis of Variance (ANOVA) Computing One-Way Independent Measures (Between Subjects) ANOVAs

The One-Way Repeated-Measures ANOVA. (For Within-Subjects Designs)

Multiple Comparison Procedures Cohen Chapter 13. For EDUC/PSY 6600

COMPARING SEVERAL MEANS: ANOVA

One-way between-subjects ANOVA. Comparing three or more independent means

CHAPTER 17 CHI-SQUARE AND OTHER NONPARAMETRIC TESTS FROM: PAGANO, R. R. (2007)

psyc3010 lecture 2 factorial between-ps ANOVA I: omnibus tests

Introduction to the Analysis of Variance (ANOVA)

One-Way ANOVA. Some examples of when ANOVA would be appropriate include:

The One-Way Independent-Samples ANOVA. (For Between-Subjects Designs)

Multiple t Tests. Introduction to Analysis of Variance. Experiments with More than 2 Conditions

Hypothesis T e T sting w ith with O ne O One-Way - ANOV ANO A V Statistics Arlo Clark Foos -

8/23/2018. One-Way ANOVA F-test. 1. Situation/hypotheses. 2. Test statistic. 3.Distribution. 4. Assumptions

Statistics For Economics & Business

Introduction to Business Statistics QM 220 Chapter 12

10/31/2012. One-Way ANOVA F-test

Analysis of Variance (ANOVA)

One-way between-subjects ANOVA. Comparing three or more independent means

DETAILED CONTENTS PART I INTRODUCTION AND DESCRIPTIVE STATISTICS. 1. Introduction to Statistics

One-way Analysis of Variance. Major Points. T-test. Ψ320 Ainsworth

Comparing Several Means: ANOVA

Review. One-way ANOVA, I. What s coming up. Multiple comparisons

Review of Statistics 101

Difference in two or more average scores in different groups

BIOL Biometry LAB 6 - SINGLE FACTOR ANOVA and MULTIPLE COMPARISON PROCEDURES

22s:152 Applied Linear Regression. Chapter 8: 1-Way Analysis of Variance (ANOVA) 2-Way Analysis of Variance (ANOVA)

Analysis of Variance

An Old Research Question

Statistical methods for comparing multiple groups. Lecture 7: ANOVA. ANOVA: Definition. ANOVA: Concepts

22s:152 Applied Linear Regression. 1-way ANOVA visual:

" M A #M B. Standard deviation of the population (Greek lowercase letter sigma) σ 2

Psychology 282 Lecture #4 Outline Inferences in SLR

Inferences About the Difference Between Two Means

22s:152 Applied Linear Regression. Take random samples from each of m populations.

4.1. Introduction: Comparing Means

Chapter 8 Student Lecture Notes 8-1. Department of Economics. Business Statistics. Chapter 12 Chi-square test of independence & Analysis of Variance

Department of Economics. Business Statistics. Chapter 12 Chi-square test of independence & Analysis of Variance ECON 509. Dr.

22s:152 Applied Linear Regression. There are a couple commonly used models for a one-way ANOVA with m groups. Chapter 8: ANOVA

Degrees of freedom df=1. Limitations OR in SPSS LIM: Knowing σ and µ is unlikely in large

Extensions of One-Way ANOVA.

This gives us an upper and lower bound that capture our population mean.

Unit 27 One-Way Analysis of Variance

Extensions of One-Way ANOVA.

Independent Samples ANOVA

Hypothesis testing: Steps

The entire data set consists of n = 32 widgets, 8 of which were made from each of q = 4 different materials.

Confidence Intervals, Testing and ANOVA Summary

Lecture 5: ANOVA and Correlation

One-way ANOVA Model Assumptions

HYPOTHESIS TESTING II TESTS ON MEANS. Sorana D. Bolboacă

WELCOME! Lecture 13 Thommy Perlinger

1. What does the alternate hypothesis ask for a one-way between-subjects analysis of variance?

Lecture 7: Hypothesis Testing and ANOVA

Inferences for Regression

ANOVA Analysis of Variance

Analysis of Variance (ANOVA)

The legacy of Sir Ronald A. Fisher. Fisher s three fundamental principles: local control, replication, and randomization.

Two-Sample Inferential Statistics

The t-test: A z-score for a sample mean tells us where in the distribution the particular mean lies

1-Way ANOVA MATH 143. Spring Department of Mathematics and Statistics Calvin College

Calculating Fobt for all possible combinations of variances for each sample Calculating the probability of (F) for each different value of Fobt

Hypothesis testing: Steps

Chapter Seven: Multi-Sample Methods 1/52

On Selecting Tests for Equality of Two Normal Mean Vectors

In a one-way ANOVA, the total sums of squares among observations is partitioned into two components: Sums of squares represent:

20.0 Experimental Design

Data Skills 08: General Linear Model

Elementary Statistics for the Biological and Life Sciences

One-Way Analysis of Variance. With regression, we related two quantitative, typically continuous variables.

Parametric versus Nonparametric Statistics-when to use them and which is more powerful? Dr Mahmoud Alhussami

One-Way ANOVA Source Table J - 1 SS B / J - 1 MS B /MS W. Pairwise Post-Hoc Comparisons of Means

Introduction to Analysis of Variance. Chapter 11

PSYC 331 STATISTICS FOR PSYCHOLOGISTS

Prepared by: Prof. Dr Bahaman Abu Samah Department of Professional Development and Continuing Education Faculty of Educational Studies Universiti

Cuckoo Birds. Analysis of Variance. Display of Cuckoo Bird Egg Lengths

Chap The McGraw-Hill Companies, Inc. All rights reserved.

Two Factor Completely Between Subjects Analysis of Variance. 2/12/01 Two-Factor ANOVA, Between Subjects 1

ANCOVA. Psy 420 Andrew Ainsworth

2 Hand-out 2. Dr. M. P. M. M. M c Loughlin Revised 2018

Repeated Measures ANOVA Multivariate ANOVA and Their Relationship to Linear Mixed Models

Chapter 16. Simple Linear Regression and Correlation

Hypothesis Testing hypothesis testing approach

N J SS W /df W N - 1

Two-Mean Inference. Two-Group Research. Research Designs. The Correlated Samples t Test

One-factor analysis of variance (ANOVA)

Longitudinal Data Analysis of Health Outcomes

Regression: Main Ideas Setting: Quantitative outcome with a quantitative explanatory variable. Example, cont.

HYPOTHESIS TESTING. Hypothesis Testing

MORE ON SIMPLE REGRESSION: OVERVIEW

Variance Estimates and the F Ratio. ERSH 8310 Lecture 3 September 2, 2009

CHI SQUARE ANALYSIS 8/18/2011 HYPOTHESIS TESTS SO FAR PARAMETRIC VS. NON-PARAMETRIC

Keppel, G. & Wickens, T.D. Design and Analysis Chapter 2: Sources of Variability and Sums of Squares

Lab #12: Exam 3 Review Key

Unbalanced Data in Factorials Types I, II, III SS Part 1

Chapter 5 Contrasts for one-way ANOVA

same hypothesis Assumptions N = subjects K = groups df 1 = between (numerator) df 2 = within (denominator)

Statistics for Managers Using Microsoft Excel Chapter 10 ANOVA and Other C-Sample Tests With Numerical Data

36-309/749 Experimental Design for Behavioral and Social Sciences. Sep. 22, 2015 Lecture 4: Linear Regression

One- factor ANOVA. F Ra5o. If H 0 is true. F Distribu5on. If H 1 is true 5/25/12. One- way ANOVA: A supersized independent- samples t- test

Disadvantages of using many pooled t procedures. The sampling distribution of the sample means. The variability between the sample means

Transcription:

One-Way ANOVA Cohen Chapter 1 EDUC/PSY 6600 1

It is easy to lie with statistics. It is hard to tell the truth without statistics. -Andrejs Dunkels

Motivating examples Dr. Vito randomly assigns 30 individuals to 1 of 3 study groups to evaluate whether one of new approaches to therapy for adjustment disorders with mixed anxiety and depressed mood are more effective than the standard approach. Participants are matched on current levels of anxiety and depressed mood at baseline. Scores from the BAI and BDI are collected after months of therapy. Dr. Creft wishes to assess differences in oral word fluency among three groups of participants: Right hemisphere stroke, left hemisphere stroke, and healthy controls. Scores on the COWAT are collected from 0 participants per group and the means of each group are compared. Cohen Chap 1 - one-way anova 3

Research Design Vocab Experimental design Participants are randomly assigned to levels and at least one factor is manipulated Participants are randomly selected from multiple preexisting (observed) populations Fixed or random effects Fixed effects design: Levels of each factor systematically chosen by researcher Random factors design: Levels of each factor are chosen randomly from a larger subset (rarer) Independent (Between-Subjects) or Repeated (Within-Subjects) factors Independent: Participants randomly allocated to each level of a factor Repeated measures design: Participants are paired or a dependency exists (multiple observations) Cohen Chap 1 - one-way anova 4

Research Design Vocab Experimental design Participants are randomly assigned to levels and at least one factor is manipulated Participants are randomly selected from multiple preexisting (observed) populations If Fixed the levels or random of the effects grouping variable are highly ordinal or continuous in nature, regression or a rank type test will be more powerful than ANOVA ANOVA is appropriate in cases where the groups are more Independent (Between-Subjects) or Repeated (Within-Subjects) factors nominal in nature. Fixed effects design: Levels of each factor systematically chosen by researcher Random factors design: Levels of each factor are chosen randomly from a larger subset (rarer) Independent: Participants randomly allocated to each level of a factor Repeated measures design: Participants are paired or a dependency exists (multiple observations) Some variables can be construed as both!!! (e.g. Grade level) probably want to analyze both ways Cohen Chap 1 - one-way anova 5

Analysis of Variance (ANOVA) ANOVA designs can be used for Experimental research Quasi-experimental studies Field/observational research Other names for 1-way ANOVA Single factor ANOVA Univariate ANOVA Simple ANOVA Independent-ANOVA Between-subjects ANOVA Omnibus test for group (MEAN) differences ONE Dependent Variable (DV) outcome Continuous (interval/ratio) & normally distributed ONE Independent Variable (IV) predictor Categorical (nominal) 3 independent samples or groups Factor with k levels Cohen Chap 1 - one-way anova 6

Example: noise & words memorized Study to determine if noise inhibits learning (N = 15) Students randomized to 1 of 3 groups (k = 3 & n = 5) IV = grouping factor with 3 levels Group A: No noise (no music, quiet room) Group B: Moderate noise (classical music) Group C: Extreme noise (rock music) Participants are given 1 minutes to memorize list of 15 nonsense words DV = # of correct nonsense words recalled Cohen Chap 1 - one-way anova 7

Steps of a Hypothesis test 1) State the Hypotheses (Null & Alternative) ) Select the Statistical Test & Significance Level Examples include: z, t, F, χ α level (commonly use.05) One vs. Two tails (usually prefer ) 3) Select random samples and collect data 4) Find the region of Rejection Based on α & # of tails 5) Calculate the Test Statistic Select the appropriate formula May need to find degrees of freedom 6) Make the Statistical Decision 8

Hypotheses of ANOVA Means: µ 1, µ, µ 3,,µ k Variances: σ 1, σ, σ 3,, σ k H 0 : µ 1 = µ = µ 3 = = µ k H 1 : Not H 0 Many ways to reject H 0 NOT H 1 : µ 1 µ µ 3 µ k Example: Noise & Words Memorized Null Hypothesis: The number of words recalled is the same regardless of the music/noise. H 0 : µ none = µ moderate = µ extreme Alternative Hypothesis: At least one music/noise level results in a different number of words recalled. H 1 : Not H 0 Cohen Chap 1 - one-way anova 9

Example: noise & words memorized 1. Enter data into R # A tibble: 15 x outcome group <dbl> <fct> 1 8. A 10. A 3 9. A 4 10. A 5 9. A 6 7. B 7 8. B 8 5. B 9 8. B 10 5. B 11 4. C 1 8. C 13 7. C 14 5. C 15 7. C. Calculate the Group Means df %>% group_by(group) %>% furniture::table1(outcome) IV (groups) DV (outcome)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! group A B C n = 5 n = 5 n = 5 outcome 9. (0.8) 6.6 (1.5) 6. (1.6)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 3. Visualize the data outcome 10 8 6 4 A B C group

Link: Independent sample t-test & ANOVA Same principle underlies many statistical tests F MS MS B = = W Measure of effect (or treatment) assessed by examining variance (or differences) between groups Measure of random variation (or error) assessed by examining variance (or differences) within groups Stats = Stuff we can explain with our variables!"#$$ %& '())*+ &,-./01 %0" 3#4 5/40/6.&7 (4/193: &4434) Numerator MS B : Compute variance between (among) sample means, multiply by n j Denominator MS W : Compute average of sample variances Cohen Chap 1 - one-way anova 11

Link: Independent sample t-test & ANOVA Same question as before Do group means significantly differ? Or Do mean differences on DV between groups EXCEED differences within groups? Between-groups differences Differences in DV due to IV (group) Within-groups differences Differences in DV due to pooled random error or variation Same analysis approach as before t ( X1-X) ( X1-X) ( X1-X) = = = s s s X1- X p p ( X1- X) ( X1-X) nj ( X1-X) 1 1 + sp ç + 1 n n1 n Could rewrite as... t =, æ ö sp ç n è j ø Where n = sample size for any group j. Then... t j ( X1- X) n j = = = = F s s s n p p p j n æ è ö ø 1

Link: Independent sample t-test & ANOVA Same question as before Do group means significantly differ? Or Do mean differences on DV between groups EXCEED differences within groups? Between-groups differences Differences in DV due to IV (group) Within-groups differences Differences in DV due to pooled random error or variation Same analysis approach as before! = # $ t ( X1-X) ( X1-X) ( X1-X) = = = s s s X1- X p p ( X1- X) ( X1-X) nj ( X1-X) 1 1 + sp ç + 1 n n1 n Could rewrite as... t =, æ ö sp ç n è j ø Where n = sample size for any group j. Then... t j ( X1- X) n j = = = = F s s s n p p p j n æ è ö ø 13

Link: Independent sample t-test & ANOVA Same question as before Do group means significantly differ? Or Do mean differences on DV between groups EXCEED differences within groups? Between-groups differences Differences in DV due to IV (group) Within-groups differences Differences in DV due to pooled random error or variation Same analysis approach as before! = # $ t ( X1-X) ( X1-X) ( X1-X) = = = s s s X1- X p p ( X1- X) ( X1-X) nj ( X1-X) 1 1 + sp ç + 1 n n1 n Could rewrite as... t =, æ ö sp ç n è j ø Where n = sample size for any group j. Then... t j ( X1- X) n j = = = = s s s n p p p j n æ è ö ø 14 F

Link: Independent sample t-test & ANOVA Same question as before Do group means significantly differ? Or Do mean differences on DV between groups EXCEED differences within groups? Between-groups differences Differences in DV due to IV (group) Within-groups differences Differences in DV due to pooled random error or variation Same analysis approach as before! = # $ t ( X1-X) ( X1-X) ( X1-X) = = = s s s X1- X p p ( X1- X) ( X1-X) nj ( X1-X) 1 1 + sp ç + 1 n n1 n Could rewrite as... t =, æ ö sp ç n è j ø Where n = sample size for any group j. Then... t j ( X1- X) n j = = = = F s s s n p p p j n æ è ö ø 15

F-distribution Sir Ronald A. Fisher (190-40 s) & agricultural experiments F-distribution Continuous theoretical probability distribution Probability of ratios (fraction) of variance between groups to variance within groups Positively skewed Range: 0 to one-tailed ( = ) * More normal as N Mean 1! = #$ % #$ % &' Family of distributions Need df and α to determine F crit df Within and df Between (more later )

Sir Ronald A. Fisher (190-40 s) & agricultural experiments

Link: Independent sample t-test & ANOVA Specific situation: groups, when n 1 = n Numerator: Variation between (among) group means Variance of means multiplied by n i Mean Square Between (MS B ) or Mean Square Treatment (MS T ) t ( X ) 1- X n j = = F s p Denominator: Pooled variation within groups Pooled variance (s p ) = average of variances when ns are equal Mean Square Within (MS W ) or Mean Square Error (MS E ) 18

Link: Independent sample t-test & ANOVA Specific situation: Mean Square groups, or when MS n 1 = n is another term for the variance Numerator: Variation between (among) group means Square : Refers to Variance the sum of SQUARED means multiplied (SS) deviations by n i from the mean Mean Square Mean: Between AVERAGE (MS B ) or Mean Square Treatment (MS of T ) the SS deviations SS is divided by N or N - 1 to yield variance ( X ) 1- X So, Mean of the sum of SQUARED deviations = Variance n j All we t want = to know = Fis whether sp variation among group means exceeds that variation within groups Denominator: Pooled variation within groups Pooled variance (s p ) = average of variances when ns are Will create a ratio of the MSs, the equal F-statistic, to see if this ratio is significantly Mean Square Within different (MS W ) or Mean from Square 1 Error (MS E ) 19

Prior example Applying data from independent-samples t-test example (drug v. placebo and depression) Recall, t = 1.96, p =.085 1.96 = 3.84! " = $ t ( X1- X) ( 7.8 -.8) n j 5* 5*1.5 6.5 = = = = = 3.84 = F s 3.7 4.66 3.41 p æ + ö æ ö 16.1 ç ç è ø è ø Cohen Chap 1 - one-way anova 0

Interactive Applet http://web.utah.edu/stat/introstats/anovaflash.html 1

Assumptions Large or multiple violations will GREATLY increase risk of inaccurate p-values Increased probability of Type I or II error Independent, Random Sampling (for the IV) ß ensure by planning ahead! For preexisting (observed) populations: randomly select a sample from each population For experimental (assigned) conditions: randomly divide your sample (of convenience) for assignment to groups Ensure no connection between subjects in the different groups (no matching!) ß MUST!!! Normally distributed (DV) Robust requirement if samples are large, this isn t as important If not normal (or small samples) alternatives: use the Krukal-Wallis H test HOV: homogeneity of Variance (DV) Since an average variance is computed for denominator of F-statistic, variance should be similar for all groups: σ 1 = σ = σ 3 = = σ k σ e, pooled (averaged) variance, must be representative of each group so that MS W is accurate Testing: Levene s Test All test for HOV are underpowered if samples are small, so you have to use judgement ;) If NOT HOV alternatives: Welch, Brown-Forsythe, etc.

F-statistic: numerator = MS B One estimate of population variance (σ e ) Cannot compute population variance of all possible means as we only have a sample Estimate population variance with sample means and multiply by sample size: Recall from CLT, relationship between variance of population (σ ) & variance of SDM (SE = s s s s s s s X ) = = n X X X j = e = MSB n n j j If H 0 true, MS B = σ e Have drawn k independent samples From the SAME population (i.e. group differences = 0) Equal Sample Sizes!" # = % & ' ( ) * UN-equal Sample Sizes!" # = %, -.,. 0 * 1 1 If H 0 false, MS B σ e MS B reflects BOTH population variance AND group differences Cohen Chap 1 - one-way anova 3

Example: noise & words memorized 1. Find grand mean:! " = $.&'(.('(.& ). Find the SD of the means: 3. Multiply by n = && ) = 7.33, -. & = 9. 7.33 & + 6.6 7.33 & + 6. 7.33 & 3 1 78 9 = 5 :.65 = ;<. =>?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! group A B C n = 5 n = 5 n = 5 outcome 9. (0.8) 6.6 (1.5) 6. (1.6)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! = 5.3067 =.65 Equal Sample Sizes 78 9 = @ :, -. & Cohen Chap 1 - one-way anova 4

F-STATISTIC: DENOMINATOR = MS W Second estimate of population variance (σ e ) Pooling sample variances yields best estimate σ 1 = s 1 ; σ = s ; ; σ j = s j Average subgroup (j) variance: σ e = s e Equal Sample Sizes UN-equal Sample Sizes Goal should be to obtain equal ns BUT 1 group > 50% larger other group: too much k = # subgroups j denotes the j-th subgroup Regardless of whether H 0 true: MS W = σ e!" # = % & ' = ) * ' +!" # = % & ' =, * 1 ) * ', / + Not affected by group MEANS 5

Example: noise & words memorized 1. Average the VARIANCES s:!" # = 0.8( + 1.5 ( + 1.6 ( 3 Equal Sample Sizes!" # = 0 1 ( = 3 4 ( 5 = 5.5 3 =.. /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! group A B C n = 5 n = 5 n = 5 outcome 9. (0.8) 6.6 (1.5) 6. (1.6)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Cohen Chap 1 - one-way anova 6

Logic of anova In ANOVA, independent estimates of same population (error) variance are computed: σ, now called σ e MS B : Variance between group means corrected by sample sizes (n j ) MS W : Average variance within groups Ratio of estimates of population variance Hence the term Analysis of Variance, instead of something related to means comparisons (even though that is what we are interested in doing) Increased variance among means indicates means are spread out & likely differ from one another or come from different populations Large F-ratio indicates differences among means is NOT likely due to chance F Ratio or F Statistic = ANOVA is MS MS Between-Group Measure of Variation Due to Estimate of Random Variation (Error) + Effect of IV (Group) Within-Group Estimate of Random Variation (Error) B W 7

Logic of anova When estimates of σ e (variances) are IF all samples are the same sizes 1 3 = 5 7 6 = 8 9 : ; 7 <= 0 1 > = 5 7 6 = ; 9 7 ABCDE 1 3 F = 1 > @ Equal: Fail to reject H 0 All means come from same population Both are estimates of the same population variance σ e F-ratio 1 Unequal: Reject H 0 Unlikely that all means come from same population Effect of IV surpasses random error/variation within groups F-ratio significantly > 1, MS B > MS W Cohen Chap 1 - one-way anova 8

CALCULATIONS: Approaches SUMMARY STATS KNOWN (shown on previous few slides) SUM OF SQUARES (SS) APPROACH (alternate formulas here) n = å - i i= 1 SS ( X X ) Can partition total variation in DV due to group effects (IV) and error SS Total = SS Between + SS Within 9

Total How different are ALL individuals from the GRAND MEAN Inner Sum: individuals in each subgroup Outter Sum: subgroups in the whole Between How different are GROUP MEANS from the GRAND MEAN Within How different are individuals from their GROUP s MEAN Inner Sum: individuals in each subgroup Outter Sum: subgroups in the whole k n k k n Total = ( i j - GM ) åå SSBetween = n jå( X j - X GM ) SSWithin = åå( X ij - X j ) j= 1 i= 1 j= 1 j= 1 i= 1 SS X X!" + = ) * 1!" # = % '!" ( = ) * % F Ratio or F Statistic = MS MS B W MS Between SS df B = = B k å n ( X - X ) j j GM j= 1 k -1 MS Within W = = W k n åå ( Xij - X j ) SS j= 1 i= 1 df N - k Can partition total variation in DV due to group effects (IV) and error SS Total = SS Between + SS Within 30

F-statistic F Ratio or F Statistic = MS MS B W F crit à F-distribution table (different table per α) Across the top: find df B Down the side: find df W If H 0 is true, MS B = MS W F-statistic 1 Both are estimates of variance of same population If H 0 is false, MS B > MS W F-statistic exceeds F crit by some amount At least one mean significantly differs from another Cohen Chap 1 - one-way anova 31

Example: noise & words memorized Test statistic: F-score observed Critical Value: F-crit for α=.05 GH = 3 1, 15 3 = :, 5: 1 8 = 59. :;< 1 3 = 5. 7 =, 1 = 13.67 1.90 = ;. 7F Cohen Chap 1 - one-way anova 3

Example: noise & words memorized Critical Value: F-crit for α=.05 1 JKLM, 1 = N. >= Test statistic: F-score observed?@ = 3 1, 15 3 = C, DC 1, 1 = 13.67 1.90 = <. => 1, 1 = 13.67 1.90 = <. => Conclusion: AT LEAST ONE noise/music levels has a different mean # of words memorized. In fact it is the no noise/music condition that has the most words memorized. What type of music is playing doesn t seem to make as much of a difference. Cohen Chap 1 - one-way anova 33

R Code: ANOVA Same as with t-tests df %>% car::levenetest(outcome ~ group, data =., center = mean) df %>% group_by(group) %>% furniture::table1(outcome)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! group A B C n = 5 n = 5 n = 5 outcome 9. (0.8) 6.6 (1.5) 6. (1.6)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Levene's Test for Homogeneity of Variance (center = mean) Df F value Pr(>F) group.813 0.0990. 1 --- Signif. codes: 0 *** 0.001 ** 0.01 * 0.05. 0.1 1 What does this tell us?

R Code: ANOVA df %>% car::levenetest(outcome ~ group, data =., center = mean) df %>% group_by(group) %>% furniture::table1(outcome)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! group A B C n = 5 n = 5 n = 5 outcome 9. (0.8) 6.6 (1.5) 6. (1.6)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Levene's Test for Homogeneity of Variance (center = mean) Df F value Pr(>F) group.813 0.0990. 1 --- Signif. codes: 0 *** 0.001 ** 0.01 * 0.05. 0.1 1 aov_4() function performs ANOVA fit_anova <- df %>% afex::aov_4(outcome ~ group + (1 id), data =.) (1 id) tells it the ID variable

R Code: ANOVA fit_anova <- df %>% afex::aov_4(outcome ~ group + (1 id), data =.) fit_anova fit_anova$anova Anova Table (Type 3 tests) Response: outcome Effect df MSE F ges p.value 1 group, 1 1.90 6.98 **.54.010 --- Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 + 0.1 1

R Code: ANOVA fit_anova <- df %>% afex::aov_4(outcome ~ group + (1 id), data =.) fit_anova fit_anova$anova Anova Table (Type 3 tests) Response: outcome Effect df MSE F ges p.value 1 group, 1 1.90 6.98 **.54.010 --- Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 + 0.1 1 Anova Table (Type III tests) Response: dv Sum Sq Df F value Pr(>F) (Intercept) 806.67 1 44.5614 9.847e-11 *** group 6.53 6.985 0.009745 ** Residuals.80 1 --- Signif. codes: 0 *** 0.001 ** 0.01 * 0.05. 0.1 1

R Code: ANOVA fit_anova <- df %>% afex::aov_4(outcome ~ group + (1 id), data =.) fit_anova fit_anova$anova Anova Table (Type 3 tests) Reaches into the fit_anova object and grabs this more informative table Response: outcome Effect df MSE F ges p.value 1 group, 1 1.90 6.98 **.54.010 --- Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 + 0.1 1 Anova Table (Type III tests) Response: dv Sum Sq Df F value Pr(>F) (Intercept) 806.67 1 44.5614 9.847e-11 *** group 6.53 6.985 0.009745 ** Residuals.80 1 --- Signif. codes: 0 *** 0.001 ** 0.01 * 0.05. 0.1 1

R Code: ANOVA 9 8 df %>% ggplot(aes(group, means)) + stat_summary() outcome 7 6 A B C group

Measures of Association Term preferred over Effect size for ANOVA Amount or % of variation in DV explained/accounted for by knowledge of group membership (IV) Correlation between grouping variable (IV) and outcome variable (DV) 4 measures: Eta-squared (η ) Omega-squared (ω ) Cohen s f Intra-class Correlation Coefficients (ρ) ω is least biased, but unfamiliarity and difficulty of computation have limited use η probably sufficient in many cases Cohen Chap 1 - one-way anova 40

Measures of Association: eta-squared η : Measure of % reduction in error IN THIS DATA (SAMPLE) SS Total = Error in DV around grand mean SS Within = Error around group means By knowing group membership we reduce error by SS Between = SS Total SS Within % reduction in error expressed as: η can be biased with sample data h SS df F = = SS df F + df B B T B W Adjusted η = MS MS W 1- T Compute using information from ANOVA summary table η = SS B / SS T η adj = 1 (MS W / MS T ) Range: 0 to 1 Small:.01 to.06 Medium:.06 to.14 Large: >.14 41

Example: noise & words memorized TU = 3 1, 15 3 = =, 0= P, 1 = 13.67 1.90 = @. L,-. = 0. 3 "55 6 75/9: 55 ; = 0. 0= =.8,- > = 0?. =@A "55 6 75/9: 55 ; = 0?. =@A = = =@. B?4 h SS df F = = SS df F + df B B T B W C D = Using SS Using F & df s 6.534 6.534 +.8 = 3. B?AL C D = M 6.98 M 6.98 + 1 = 3. B?AL Cohen Chap 1 - one-way anova 4

Example: noise & words memorized TU = 3 1, 15 3 = =, 0= P, 1 = 13.67 1.90 = @. L,-. = 0. 3 "55 6 75/9: 55 ; = 0. 0= =.8,- > = 0?. =@A "55 6 75/9: 55 ; = 0?. =@A = = =@. B?4 h SS df F = = SS df F + df B B T B W C D = Using SS Using F & df s 6.534 6.534 +.8 = 3. B?AL C D = M 6.98 M 6.98 + 1 = 3. B?AL Conclusion The type of noise/music in the room accounts for 54% of the variation in the number of words Cohen each Chap 1 -person one-way anova was able to memorize 43

Measures of Association: OMEGA-squared ω : Measure of % reduction in error IN THIS POPULATION (ESTIMATE TRUTH) Alternative for fixed-effects ANOVA More conservative than η (and less biased) Range: 0 to 1 (can be negative when F < 1) Same interpretation as η Compute using information from ANOVA summary table Equation for fixed effects ANOVA only SSB -( k -1) MSW ( k-1)( F-1) w = = SS + MS ( k -1)( F - 1) + n k T W j Range: 0 to 1 Small:.01 to.06 Medium:.06 to.14 Large: >.14 Cohen Chap 1 - one-way anova 44

Measures of association: Cohen s f Traditional effect size index Not a measure of association Generalization of Cohen s d to ANOVA Compute using ANOVA summary information f w = = 1-w k -1 n k j ( MS - MS ) B MS W W Converting from f to ω à f w = 1 + f Cohen Chap 1 - one-way anova 45

Measures of Association: Intra-class correlation coefficient (ICC) Measure of association for random-effects ANOVA At least 6 ICCs available Type selected depends on data structure Range: 0 to 1 Commonly used measure of agreement for continuous data Basic form: MSB - MSW r = intraclass MS + ( n -1) MS B j W Measures extent to which observations within a treatment are similar to one another relative to observations in different treatments Cohen Chap 1 - one-way anova 46

APA Results Methods Describe statistical and sample size analyses Describe factor and its levels Results of data screening Results Reporting F-test: F(df B, df W ) = F-statistic, p = / <, measure of association and effect/effect size, power (optional) Don t need to include MSE (or MS W ) as Cohen suggests Discuss any follow-up tests, if any (next lecture) Method A one-way ANOVA was used to test the hypothesis that the means of the three groups (Control, Moderate Noise, and Extreme Noise) were different following the experiment. A sample size analysis conducted prior to beginning the study indicated that five participants per group would be sufficient to reject the null hypothesis with at least 80% power if the effect size were moderate (Cohen s f =.95). Results Results indicated a significant difference among the group means, F(, 1) = 6.98, p <.01, ω =.44 Cohen Chap 1 - one-way anova 47

ANOVA vs. multiple t-tests Why not run series of independent-samples t-tests? Could, and will usually get same results, but this approach becomes more difficult under conditions: Large k k(k-1) / different t-tests! Factorial designs Danger of increased risk of Type I error when conducting multiple t-tests on same data set In next lecture we explain ways to potentially limit this risk Cohen Chap 1 - one-way anova 48

Power: use G*Power Cohen Chap 1 - one-way anova 49