Mean Comparison With More Than Two Groups

Slides:



Advertisements
Similar presentations
One-sample T-Test Matched Pairs T-Test Two-sample T-Test
Advertisements

BPS - 5th Ed. Chapter 241 One-Way Analysis of Variance: Comparing Several Means.
CHAPTER 25: One-Way Analysis of Variance Comparing Several Means
CHAPTER 25: One-Way Analysis of Variance: Comparing Several Means ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner.
Simple Logistic Regression
Chapter 8 The t Test for Independent Means Part 2: Oct. 15, 2013.
Analysis of Variance Compares means to determine if the population distributions are not similar Uses means and confidence intervals much like a t-test.
Multiple Linear Regression
MARE 250 Dr. Jason Turner Analysis of Variance (ANOVA)
T-Tests.
t-Tests Overview of t-Tests How a t-Test Works How a t-Test Works Single-Sample t Single-Sample t Independent Samples t Independent Samples t Paired.
Multiple regression analysis
T-Tests.
One-Way Between Subjects ANOVA. Overview Purpose How is the Variance Analyzed? Assumptions Effect Size.
Regression Diagnostics Using Residual Plots in SAS to Determine the Appropriateness of the Model.
Plots, Correlations, and Regression Getting a feel for the data using plots, then analyzing the data with correlations and linear regression.
Two Groups Too Many? Try Analysis of Variance (ANOVA)
Two-Way ANOVA in SAS Multiple regression with two or
Business Statistics - QBM117 Interval estimation for the slope and y-intercept Hypothesis tests for regression.
Analysis of Variance & Multivariate Analysis of Variance
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Chapter 12: Analysis of Variance
8/23/2015Slide 1 The introductory statement in the question indicates: The data set to use: GSS2000R.SAV The task to accomplish: a one-sample test of a.
Advanced Research Methods in Psychology - lecture - Matthew Rockloff
ANOVA Chapter 12.
Chapter 13: Inference in Regression
STAT 3130 Statistical Methods I Session 2 One Way Analysis of Variance (ANOVA)
Introduction to SAS Essentials Mastering SAS for Data Analytics
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:
Introduction to SAS Essentials Mastering SAS for Data Analytics
CS130 – Software Tools Fall 2010 Statistics and PASW Wrap-up 1.
Chapter 12: Introduction to 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.
STA305 week21 The One-Factor Model Statistical model is used to describe data. It is an equation that shows the dependence of the response variable upon.
One-way Analysis of Variance 1-Factor ANOVA. Previously… We learned how to determine the probability that one sample belongs to a certain population.
ANOVA (Analysis of Variance) by Aziza Munir
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.
CHAPTER 11 SECTION 2 Inference for Relationships.
6/4/2016Slide 1 The one sample t-test compares two values for the population mean of a single variable. The two-sample t-test of population means (aka.
Analysis of Variance (ANOVA) Brian Healy, PhD BIO203.
Statistics for Marketing & Consumer Research Copyright © Mario Mazzocchi 1 Analysis of variance (ANOVA) (from Chapter 7)
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.1 One-Way ANOVA: Comparing.
1 Psych 5510/6510 Chapter 14 Repeated Measures ANOVA: Models with Nonindependent ERRORs Part 3: Factorial Designs Spring, 2009.
1 ANALYSIS OF VARIANCE (ANOVA) Heibatollah Baghi, and Mastee Badii.
Chapter Seventeen. Figure 17.1 Relationship of Hypothesis Testing Related to Differences to the Previous Chapter and the Marketing Research Process Focus.
Chapter 12 Introduction to Analysis of Variance PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Eighth Edition by Frederick.
CHAPTER 27: One-Way Analysis of Variance: Comparing Several Means
ANOVAs.  Analysis of Variance (ANOVA)  Difference in two or more average scores in different groups  Simplest is one-way ANOVA (one variable as predictor);
1 Experimental Statistics Spring week 6 Chapter 15: Factorial Models (15.5)
Hypothesis test flow chart frequency data Measurement scale number of variables 1 basic χ 2 test (19.5) Table I χ 2 test for independence (19.9) Table.
One-Way Analysis of Variance Recapitulation Recapitulation 1. Comparing differences among three or more subsamples requires a different statistical test.
Other Types of t-tests Recapitulation Recapitulation 1. Still dealing with random samples. 2. However, they are partitioned into two subsamples. 3. Interest.
CRD, Strength of Association, Effect Size, Power, and Sample Size Calculations BUSI 6480 Lecture 4.
Significance Tests for Regression Analysis. A. Testing the Significance of Regression Models The first important significance test is for the regression.
While you wait: Enter the following in your calculator. Find the mean and sample variation of each group. Bluman, Chapter 121.
Outline of Today’s Discussion 1.Independent Samples ANOVA: A Conceptual Introduction 2.Introduction To Basic Ratios 3.Basic Ratios In Excel 4.Cumulative.
Jump to first page Inferring Sample Findings to the Population and Testing for Differences.
ANOVA and Multiple Comparison Tests
ANalysis Of VAriance (ANOVA) Used for continuous outcomes with a nominal exposure with three or more categories (groups) Result of test is F statistic.
Independent Samples ANOVA. Outline of Today’s Discussion 1.Independent Samples ANOVA: A Conceptual Introduction 2.The Equal Variance Assumption 3.Cumulative.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
Oneway ANOVA comparing 3 or more means. Overall Purpose A Oneway ANOVA is used to compare three or more average scores. A Oneway ANOVA is used to compare.
Introduction to Statistics for the Social Sciences SBS200, COMM200, GEOG200, PA200, POL200, or SOC200 Lecture Section 001, Spring 2016 Room 150 Harvill.
Chapter 14 Repeated Measures and Two Factor Analysis of Variance PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Seventh.
Lecture Slides Elementary Statistics Twelfth Edition
After ANOVA If your F < F critical: Null not rejected, stop right now!! If your F > F critical: Null rejected, now figure out which of the multiple means.
Levene's Test for Equality of Variances
Chapter 9 Introduction to the Analysis of Variance
Presentation transcript:

Mean Comparison With More Than Two Groups ANOVA in SAS Mean Comparison With More Than Two Groups

Introduction ANOVA (analysis of variance) tests are used to compare the means of multiple groups (as opposed to the t-test, which can only be used for up to two groups). An ANOVA tests Ho: all group means are equal vs. Ha: at least one group’s mean is different. The ANOVA results do not tell you which group is different, only whether a difference exists.

ANOVA in SAS Open SAS and use the infile statement to input the data set relief.txt (this is also the first data set of the INFILE tutorial). If you don’t remember how to do this, here is some code that may help: data relief; infile 'C:\Documents and Settings\My Documents\relief.txt'; input group $ time; proc print data = relief; run;

Once you print your data, notice that there are three groups: A, T, M Once you print your data, notice that there are three groups: A, T, M. The data are from an experiment in which subjects were given Aspirin, Tylenol or Motrin for headaches. The time until relief was measured for each subject. The question of interest is: Does time to relief differ for any of the treatments, or are they all the same? In other words: Ho: µA = µT = µM vs. Ha: at least one group mean is different

SAS Code for ANOVA To test our hypothesis, we use the following code in SAS: “class” tells SAS the classification variable. In general, this is going to be the effect that you are studying. In this case, the effect is “group.” “model” tells SAS the dependent variable. The general format is “model Y = X” where Y is the dependent variable, and X is the independent variable. In this case, time to relief is dependent on treatment group. Often a “quit” statement is necessary, because SAS may continue to run a procedure until either another one has been run, or SAS has been told to quit.

Run the Program—Check Your Log

If your Log is free of error messages, look at your output.

The first page of your output says that there were three categories under the variable “Group”: A T M. It also tells you that there are 18 observations (it’s a good idea to double-check these numbers, to make sure no data are missing). Scroll down to the second page.

ANOVA Table in SAS Output

Interpreting the SAS Output The “Between SS” is under “Model” and has a value of 2483.44. The “Within SS” is under “Error” and has a value of 799.50. The degrees of freedom are listed under “DF.” The F*= MSB/MSW = 1241.72/53.30 = 23.30. The p-value of this F* is found under “Pr>F” and p < 0.0001.

Conclusions from ANOVA Because the p-value for the test statistic (F*) is less than alpha (0.05), we reject the null hypothesis and conclude that at least two of the groups’ means differ on time to relief. Now the question is: which groups are different? Answering this question requires multiple comparisons, which can affect the Type-I error. To correct for this, we can use the Bonferroni Method. The following code is exactly the same as before, except a line has been added, requesting the Bonferroni correction.

ANOVA Code with Bonferroni Method The fourth statement requests that SAS use the Bonferroni Method when comparing the means of each category within the variable “group.” Your SAS Output will be the same as previously, but it will have an additional page.

Bonferroni Method Output

Interpreting Output As stated in the SAS Output under the Bonferroni tests, “Means with the same letter are not significantly different.” Because the Aspirin and Tylenol groups have the same letter (A) under the heading “Bon Grouping,” this indicates they are not significantly different in mean time to relief from headache. The Motrin group, however, has a different letter (B) under the “Bon Grouping,” which indicates that the Motrin group differs significantly from both the Aspirin and Tylenol groups. A brief comparison of their means shows that those who took Motrin had significantly quicker time to relief (15 min) than the Aspirin (44 min) or Tylenol (34 min) groups.

Conclusion The code given in this section can be used for all one-way ANOVAs, with slight modification of variable names, etc., to determine whether at least one group differs significantly from the others. The p-value from this test will tell you if at least one group is different.