Chapter 16 Appendix. Nonparametric Tests with Excel, JMP, Minitab, SPSS, CrunchIt!, R, and TI-83-/84 Calculators

Similar documents
SPSS Tests for Versions 9 to 13

SPSS Explore procedure

EPS 625 INTERMEDIATE STATISTICS FRIEDMAN TEST

CHAPTER 14 NONPARAMETRIC TESTS

An introduction to IBM SPSS Statistics

Nonparametric tests these test hypotheses that are not statements about population parameters (e.g.,

StatCrunch and Nonparametric Statistics

Projects Involving Statistics (& SPSS)

SCHOOL OF HEALTH AND HUMAN SCIENCES DON T FORGET TO RECODE YOUR MISSING VALUES

Statistics. One-two sided test, Parametric and non-parametric test statistics: one group, two groups, and more than two groups samples

NONPARAMETRIC STATISTICS 1. depend on assumptions about the underlying distribution of the data (or on the Central Limit Theorem)

Chapter 8. Comparing Two Groups

LAB 4 INSTRUCTIONS CONFIDENCE INTERVALS AND HYPOTHESIS TESTING

SPSS/Excel Workshop 3 Summer Semester, 2010

Analysis of categorical data: Course quiz instructions for SPSS

The Wilcoxon Rank-Sum Test

Bill Burton Albert Einstein College of Medicine April 28, 2014 EERS: Managing the Tension Between Rigor and Resources 1

QUANTITATIVE METHODS BIOLOGY FINAL HONOUR SCHOOL NON-PARAMETRIC TESTS

Once saved, if the file was zipped you will need to unzip it. For the files that I will be posting you need to change the preferences.

t Tests in Excel The Excel Statistical Master By Mark Harmon Copyright 2011 Mark Harmon

NCSS Statistical Software

Data Analysis Tools. Tools for Summarizing Data

Nonparametric Two-Sample Tests. Nonparametric Tests. Sign Test

Comparing Means in Two Populations

1 Nonparametric Statistics

CHAPTER 11 CHI-SQUARE AND F DISTRIBUTIONS

Chapter 12 Nonparametric Tests. Chapter Table of Contents

THE KRUSKAL WALLLIS TEST

THE FIRST SET OF EXAMPLES USE SUMMARY DATA... EXAMPLE 7.2, PAGE 227 DESCRIBES A PROBLEM AND A HYPOTHESIS TEST IS PERFORMED IN EXAMPLE 7.

Non-Parametric Tests (I)

Rank-Based Non-Parametric Tests

INTERPRETING THE ONE-WAY ANALYSIS OF VARIANCE (ANOVA)

1.5 Oneway Analysis of Variance

Using SPSS, Chapter 2: Descriptive Statistics

Nonparametric Statistics

Introduction. Chapter 14: Nonparametric Tests

The Chi-Square Test. STAT E-50 Introduction to Statistics

Chapter 5 Analysis of variance SPSS Analysis of variance

An introduction to using Microsoft Excel for quantitative data analysis

Minitab Session Commands

Testing Group Differences using T-tests, ANOVA, and Nonparametric Measures

How To Test For Significance On A Data Set

Using Excel in Research. Hui Bian Office for Faculty Excellence

Two Related Samples t Test

Multiple-Comparison Procedures

One-Way Analysis of Variance (ANOVA) Example Problem

NCSS Statistical Software. One-Sample T-Test

IBM SPSS Statistics 20 Part 4: Chi-Square and ANOVA

Skewed Data and Non-parametric Methods

Two-Sample T-Tests Assuming Equal Variance (Enter Means)

Computer Training Centre University College Cork. Excel 2013 Pivot Tables

Research Methodology: Tools

Recall this chart that showed how most of our course would be organized:

13: Additional ANOVA Topics. Post hoc Comparisons

Two-Sample T-Tests Allowing Unequal Variance (Enter Difference)

Stats for Strategy Fall 2012 First-Discussion Handout: Stats Using Calculators and MINITAB

Non-Inferiority Tests for Two Means using Differences

The Friedman Test with MS Excel. In 3 Simple Steps. Kilem L. Gwet, Ph.D.

SAS/STAT. 9.2 User s Guide. Introduction to. Nonparametric Analysis. (Book Excerpt) SAS Documentation

One-Way ANOVA using SPSS SPSS ANOVA procedures found in the Compare Means analyses. Specifically, we demonstrate

Nonparametric Statistics

CHAPTER 12 TESTING DIFFERENCES WITH ORDINAL DATA: MANN WHITNEY U

An SPSS companion book. Basic Practice of Statistics

A. BACK UP YOUR CURRENT DATA. QuickBooks Business Accounting Software for Windows Account Conversion Instructions

SPSS Notes (SPSS version 15.0)

In This Issue: Excel Sorting with Text and Numbers

Paired T-Test. Chapter 208. Introduction. Technical Details. Research Questions

Analysis of Variance ANOVA

Statistics for the intensivist (3) ICU Fellowship Training Radboudumc

Part 3. Comparing Groups. Chapter 7 Comparing Paired Groups 189. Chapter 8 Comparing Two Independent Groups 217

The Dummy s Guide to Data Analysis Using SPSS

Bowerman, O'Connell, Aitken Schermer, & Adcock, Business Statistics in Practice, Canadian edition

KSTAT MINI-MANUAL. Decision Sciences 434 Kellogg Graduate School of Management

Testing for differences I exercises with SPSS

IBM SPSS Statistics for Beginners for Windows

NCSS Statistical Software

8 6 X 2 Test for a Variance or Standard Deviation

Statistics for Sports Medicine

SPSS Guide How-to, Tips, Tricks & Statistical Techniques

Chapter 23. Inferences for Regression

SPSS 3: COMPARING MEANS

Come scegliere un test statistico

Friedman's Two-way Analysis of Variance by Ranks -- Analysis of k-within-group Data with a Quantitative Response Variable

Two Correlated Proportions (McNemar Test)

Directions for using SPSS

Hypothesis testing - Steps

MEASURES OF LOCATION AND SPREAD

Odds ratio, Odds ratio test for independence, chi-squared statistic.

USING WORDPERFECT'S MERGE TO CREATE MAILING LABELS FROM A QUATTRO PRO SPREADSHEET FILE Click on a Step to move to the next Step

2012 Teklynx Newco SAS, All rights reserved.

Data exploration with Microsoft Excel: univariate analysis

Multivariate Analysis of Ecological Data

12: Analysis of Variance. Introduction

Introduction to Quantitative Methods

Company Setup 401k Tab

How To Check For Differences In The One Way Anova

Module 4 (Effect of Alcohol on Worms): Data Analysis

Non-parametric Tests Using SPSS

Non-Inferiority Tests for One Mean

Linear Models in STATA and ANOVA

Transcription:

The Wilcoxon Rank Sum Test Chapter 16 Appendix Nonparametric Tests with Excel, JMP, Minitab, SPSS, CrunchIt!, R, and TI-83-/84 Calculators These nonparametric tests make no assumption about Normality. They are a means of testing hypotheses about populations (the median or the distributions themselves) when assumptions about the data having an approximately Normal distribution are not true, or in the face of outliers. They are all based on ranks. Briefly, in a sorted data set, the smallest value has rank 1 and the largest has rank n. In the case of ties (multiple occurrences of the same data value), each tied value is typically given a rank equal to the average rank for that value. This test is based on ranking two independent samples together, then summing the ranks for one of the samples as the test statistic. It is a nonparametric alternative to the twosample t test. Most software implements this test as the equivalent Mann-Whitney test. Excel cannot perform these nonparametric tests. Excel Use Analyze Fit Y by X. 1. Click to enter the column containing the response values into the box labeled Y, Response, and the variable containing the group labels into the box labeled X, Factor. 2. Click OK. 3. Click the red triangle. Select Nonparametric Wilcoxon Test. The first block of the output gives the sum of the ranks for each group and the mean rank for each group. The test statistic and P-value for this test are in the second block (labeled 2-Sample Test ). Note: If you have JMP Pro, you can duplicate the output of Figure 16.3 (using the Exact test) with Analyze Fit Y by X, then use the red triangle to select Nonparametric Exact Test Wilcoxon Exact Test. For more information, see the JMP Video Technology Manual, Wilcoxon Rank Sum Test. TA16-1

TA16-2 CHAPTER 16 Appendix Minitab For this test, Minitab requires the data be in two columns. If your data are not in that form, use copy and paste to create the two columns. Use Stat Nonparametrics Mann-Whitney. 1. Select and enter the two samples into the boxes labeled First sample and Second sample. 2. Minitab creates a confidence interval for the median difference as well as performing the test. If you want a confidence level other than 95%, enter that in the box. Change the form of the alternate hypothesis (if necessary) to match your question. Minitab gives two P-values (labeled significant at ). One is adjusted for ties and is typically the one of interest. The Minitab Video Technology Manual, Wilcoxon Rank Sum Test, gives more information and an example. Use Analyze Nonparametric Tests Independent Samples. 1. You will be met with an intermediate screen that asks what your objective is. Simply take the default here. 2. Click the Fields tab. Click to enter the value of the response variable into the box labeled Test Fields. Click to select and enter the grouping variable into the box labeled Groups. 3. Click Run. SPSS displays the null hypothesis, the P-value of the test, and a decision. Alternatively, with a numeric grouping variable, you can use Analyze Nonparametric Tests Legacy Dialogs 2 Independent Samples. 1. Click to select and enter the response and grouping variables. 2. Click Define Groups ; enter the numbers assigned to the two groups. Click Continue to return to the main dialog. 3. Click OK. This presents a fuller set of output, including the sum of ranks for each group, the test statistic value, and the P-value for the test. The SPSS Video Technology Manual, Wilcoxon Rank Sum Test, gives more information and an example. Use Statistics Non-parametrics Mann-Whitney U. 1. Select the appropriate tab for your data layout samples in separate columns or grouped (one column with data and another column with group identifiers). 2. If Columns, use the drop-down to select the two columns of data. Enter a hypothesized value for the difference of the medians (typically the default, 0) and the type of alternate hypothesis. Click Calculate. 3. If Grouped, use the drop-downs to select the column of data and the column of group identifiers. Crunchit will populate the values that correspond to the identification of Groups 1 and 2; use the drop-downs to change these if you desire. Click Calculate.

CHAPTER 16 Appendix TA16-3 TI-83/-84 TI calculators cannot perform these nonparametric tests without additional programs. These programs require downloading with a TI-Connect cable. For more information, see the TI Video Technology Manuals, Wilcoxon Signed Rank Test, Wilcoxon Rank Sum Test, and Kruskal-Wallis Test. With one variable of data and another designating the groups, the command to perform this test is > wilcox.test(response ~ Grouping, data=dataset) As always, the data=dataset option is not needed if the data set has been attached. If the data are in two separate variables, the command would be > wilcox.test(var1, Var2) The R Video Technology Manual, Wilcoxon Rank Sum Test, gives more information and an example. This video also explains the many options that can be added to this basic command. The Wilcoxon Signed Rank Test This test is typically used for matched pairs data to test a null hypothesis that the median difference is 0. It can also be used to test the median of a single population. We first rank the absolute values of the differences (data). Values less than the hypothesized median are then given negative signs. The test statistic is typically the sum of the positive ranks. For testing paired data (with the two sets of observations in two columns), use Analyze Matched Pairs. 1. Click to select and enter the two columns of data into the box labeled Y, Paired Response. Click OK. 2. Click on the red triangle at the top of the output. Select Wilcoxon Signed Rank. The test statistic and three P-values are displayed. Select the appropriate P-value for your alternate hypothesis. For testing a single population, use Analyze Distribution. 1. Click to enter the variable of interest into the box labeled Y, Columns. Click OK. 2. Click the red triangle next to the variable name. Select Test Mean. 3. Enter the hypothesized mean and check the box labeled Wilcoxon Signed Rank. Click OK. For an example, see the JMP Video Technology Manual, Wilcoxon Signed Rank Test.

TA16-4 CHAPTER 16 Appendix For paired data, first ensure that the data are in two separate columns. Use Stat Nonparametrics Pairwise Differences to compute the differences. Minitab 1. Click to select and enter the observations into the boxes labeled First variable and Second variable. 2. Enter the name of an empty column to receive the differences. Now, for either differences or actual data, use Stat Nonparametrics 1-Sample Wilcoxon. 1. Click to enter the column containing the data (differences) into the Variables box. 2. Because this is usually used as a test, move the radio button to Test median. Enter the hypothesized median and form of the alternate hypothesis. 3. Click OK. For more information, see the Minitab Video Technology Manual, Wilcoxon Signed Rank Test. For paired data, use Analyze Nonparametric Tests Related Samples. 1. You will be met with an intermediate screen that asks what your objective is. Simply take the default here. 2. Click the Fields tab. Click to enter the two columns of data into the box labeled Test Fields. 3. Click Run. SPSS displays the null hypothesis, the P-value of the test, and a decision. Alternatively, with a numeric grouping variable, you can use Analyze Nonparametric Tests Legacy Dialogs 2 Related Samples. 1. Click to select and enter names of both variables. 2. The default is the Wilcoxon test, so click OK. This presents a fuller set of output, including the sum of both negative and positive ranks, the test statistic value, and the (two-sided) P-value for the test. The SPSS Video Technology Manual, Wilcoxon Signed Rank Test, gives more information and an example. For testing paired data (with the two sets of observations in two columns), use Statistics Nonparametrics Wilcoxon Paired. 1. Click to select and enter the two columns of data into the boxes labeled First Variable and Second Variable. 2. Enter the hypothesized median of the differences (typically 0) and the form of the alternate hypothesis. Click Calculate. For testing a single population, use Statistics Nonparametrics Wilcoxon Signed Rank. 1. Use the drop-down to select the variable of interest. 2. Enter the hypothesized median and the form of the alternate hypothesis. Click Calculate.

CHAPTER 16 Appendix TA16-5 For paired data, use the command > wilcox.test(var1, Var2, paired=t) This is the same command for the rank sum test, but with an added parameter to indicate we have paired data. The R Video Technology Manual, Wilcoxon Signed Rank Test, gives more information and an example. This video also explains the many options that can be added to this basic command. The Kruskal-Wallis Test This nonparametric test replaces one-way ANOVA. The null hypothesis is essentially that all populations have the same distribution (or, sometimes, medians). The test statistic is based on the sum of the ranks for all groups. P-values come from the chisquare distribution with k 2 1 degrees of freedom, where k is the number of categories (groups). Use Analyze Fit Y by X. 1. Click to enter the column containing the response values into the box labeled Y, Response and the variable containing the group labels into the box labeled X, Factor. 2. Click OK. 3. Click the red triangle. Select Nonparametric Wilcoxon Test. The first block of the output gives the sum of the ranks for each group and the mean rank for each group. The test statistic and P-value for this test are in the second block (labeled 2-Sample Test ). For more information, see the JMP Video Technology Manual, Kruskal-Wallis Test. Minitab Use Stat Nonparametrics Kruskal-Wallis. Click to select and enter the column with the response values and the column with group labels. Click OK. Minitab results give the median for each group, the average rank for each group, the H statistic, and two P-values (the one adjusted for ties is typically used). For more information, see the Minitab Video Technology Manual, Kruskal-Wallis Test.

TA16-6 CHAPTER 16 Appendix Use Analyze Nonparametric Tests Independent Samples. 1. You will be met with an intermediate screen that asks what your objective is. Simply take the default here. 2. Click the Fields tab. Click to enter the value of the response variable into the box labeled Test Fields. Click to select and enter the grouping variable into the box labeled Groups. 3. Click Run. SPSS displays the null hypothesis, the P-value of the test, and a decision. Alternatively, with a numeric grouping variable, you can use Analyze Nonparametric Tests Legacy Dialogs K Independent Samples. 1. Click to select and enter the response and grouping variables. 2. Click Define Range ; enter the minimum and maximum numbers assigned to the groups. Click Continue to return to the main dialog. 3. Click OK. This presents a fuller set of output, including the mean rank for each group, the test statistic value, degrees of freedom, and the P-value for the test. The SPSS Video Technology Manual, Kruskal-Wallis Test, gives more information and an example. Use Statistics Nonparametrics Kruskal-Wallis. 1. Select the tab that corresponds to your data loyout (each sample in a separate column or a single column of data with a group identifier). 2. For column layout, check the boxes next to the variable names that will be data for the test. Click Calculate. 3. For grouped layout, use the drop-downs to select the variable with the data and the variable with the group identifiers. Click Calculate. With one variable containing the data and another for group identification, use the command > kruskal.test(response ~ Groups) The R Video Technology Manual, Kruskal-Wallis Test, gives more information and an example. This video also explains the many options that can be added to this basic command.