How to choose a statistical test. Francisco J. Candido dos Reis DGO-FMRP University of São Paulo

Similar documents
SPSS Tests for Versions 9 to 13

Projects Involving Statistics (& SPSS)

The Statistics Tutor s Quick Guide to

Come scegliere un test statistico

SPSS Explore procedure

Statistics for Sports Medicine

Nonparametric Statistics

INTERPRETING THE ONE-WAY ANALYSIS OF VARIANCE (ANOVA)

The Dummy s Guide to Data Analysis Using SPSS

Analysing Questionnaires using Minitab (for SPSS queries contact -)

SPSS ADVANCED ANALYSIS WENDIANN SETHI SPRING 2011

UNIVERSITY OF NAIROBI

An introduction to IBM SPSS Statistics

business statistics using Excel OXFORD UNIVERSITY PRESS Glyn Davis & Branko Pecar

Additional sources Compilation of sources:

Descriptive Statistics

Data analysis process

Business Statistics. Successful completion of Introductory and/or Intermediate Algebra courses is recommended before taking Business Statistics.

Course Text. Required Computing Software. Course Description. Course Objectives. StraighterLine. Business Statistics

UNDERSTANDING THE TWO-WAY ANOVA

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

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

STATISTICAL ANALYSIS WITH EXCEL COURSE OUTLINE

Chapter G08 Nonparametric Statistics

SPSS Modules Features Statistics Premium

THE KRUSKAL WALLLIS TEST

Overview of Non-Parametric Statistics PRESENTER: ELAINE EISENBEISZ OWNER AND PRINCIPAL, OMEGA STATISTICS

Institute of Actuaries of India Subject CT3 Probability and Mathematical Statistics

Analyzing Research Data Using Excel

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

Chapter 12 Nonparametric Tests. Chapter Table of Contents

Statistical tests for SPSS

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.

Study Guide for the Final Exam

Description. Textbook. Grading. Objective

X X X a) perfect linear correlation b) no correlation c) positive correlation (r = 1) (r = 0) (0 < r < 1)

Basic Statistical and Modeling Procedures Using SAS

NCSS Statistical Software

Research Methods & Experimental Design

CHAPTER 14 ORDINAL MEASURES OF CORRELATION: SPEARMAN'S RHO AND GAMMA

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

QUANTITATIVE METHODS BIOLOGY FINAL HONOUR SCHOOL NON-PARAMETRIC TESTS

Analysis of Variance ANOVA

NAG C Library Chapter Introduction. g08 Nonparametric Statistics

Introduction to Quantitative Methods

MEASURES OF LOCATION AND SPREAD

ANALYSING LIKERT SCALE/TYPE DATA, ORDINAL LOGISTIC REGRESSION EXAMPLE IN R.

DESCRIPTIVE STATISTICS. The purpose of statistics is to condense raw data to make it easier to answer specific questions; test hypotheses.

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

Biostatistics: Types of Data Analysis

Comparing Means in Two Populations

Non-parametric Tests Using SPSS

Simple Predictive Analytics Curtis Seare

SPSS TUTORIAL & EXERCISE BOOK

Difference tests (2): nonparametric

Nonparametric Two-Sample Tests. Nonparametric Tests. Sign Test

DATA INTERPRETATION AND STATISTICS

Section 3 Part 1. Relationships between two numerical variables

Intro to Parametric & Nonparametric Statistics

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

II. DISTRIBUTIONS distribution normal distribution. standard scores

Terminating Sequential Delphi Survey Data Collection

Multiple Linear Regression

Instructions for SPSS 21

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.

Introduction to Regression and Data Analysis

Parametric and Nonparametric: Demystifying the Terms

MASTER COURSE SYLLABUS-PROTOTYPE PSYCHOLOGY 2317 STATISTICAL METHODS FOR THE BEHAVIORAL SCIENCES

training programme in pharmaceutical medicine Clinical Data Management and Analysis

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

Parametric and non-parametric statistical methods for the life sciences - Session I

Introduction to Statistics Used in Nursing Research

SPSS Notes (SPSS version 15.0)

Rank-Based Non-Parametric Tests

Data Analysis Tools. Tools for Summarizing Data

STATS8: Introduction to Biostatistics. Data Exploration. Babak Shahbaba Department of Statistics, UCI

Introduction to Statistics and Quantitative Research Methods

Univariate Regression

An SPSS companion book. Basic Practice of Statistics

Tutorial 5: Hypothesis Testing

Comparison of EngineRoom (6.0) with Minitab (16) and Quality Companion (3)

List of Examples. Examples 319

Analysis of Data. Organizing Data Files in SPSS. Descriptive Statistics

Simple Linear Regression Inference

SPSS 3: COMPARING MEANS

A and B This represents the probability that both events A and B occur. This can be calculated using the multiplication rules of probability.

CHAPTER 14 NONPARAMETRIC TESTS

MTH 140 Statistics Videos

Diagrams and Graphs of Statistical Data

Data Analysis, Research Study Design and the IRB

Chapter 12. Data Collection Measurements and Analysis


WebFOCUS RStat. RStat. Predict the Future and Make Effective Decisions Today. WebFOCUS RStat

Types of Data, Descriptive Statistics, and Statistical Tests for Nominal Data. Patrick F. Smith, Pharm.D. University at Buffalo Buffalo, New York

DATA ANALYSIS. QEM Network HBCU-UP Fundamentals of Education Research Workshop Gerunda B. Hughes, Ph.D. Howard University

EPS 625 INTERMEDIATE STATISTICS FRIEDMAN TEST

Using Excel for inferential statistics

SPSS: AN OVERVIEW. Seema Jaggi and and P.K.Batra I.A.S.R.I., Library Avenue, New Delhi

Assumptions. Assumptions of linear models. Boxplot. Data exploration. Apply to response variable. Apply to error terms from linear model

T-test & factor analysis

Transcription:

How to choose a statistical test Francisco J. Candido dos Reis DGO-FMRP University of São Paulo

Choosing the right test One of the most common queries in stats support is Which analysis should I use There are several steps to help the student decide When a student is explaining their project, these are the questions you need answers for

Choosing the right test 1) A clearly defined research question 2) What is the dependent variable and what type of variable is it? 3) How many independent variables are there and what data types are they? 4) Are you interested in comparing means or investigating relationships? 5) Do you have repeated measurements of the same variable for each subject?

Research question Clear questions with measurable quantities Which variables will help answer these questions Think about what test is needed before carrying out a study so that the right type of variables are collected

Steps to undertaking a Hypothesis test Define study question Set null and alternative hypothesis Calculate a test statistic Choose a suitable test Calculate a p-value Make a decision and interpret your conclusions

Categorical data Frequency Percentage (Row, Column or Total) Descriptive statistics Continuous data: Measure of location Mean Median Continuous data: Measure of variation Exploring data Standard deviation Range (Min, Max) Inter-quartile range (LQ, UQ) Categorical data Bar chart Clustered bar charts (two categorical variables) Bar charts with error bars Graphical illustrations Continuous data Histogram (can be plotted against a categorical variable) Box & Whisker plot (can be plotted against a categorical variable) Dot plot (can be plotted against a categorical variable) Scatter plot (two continuous variables)

Exposure variable Normal Skew 1 group One-sample t test Sign test / Signed rank test 2 groups Two-sample t test Mann-Whitney U test Continuous Paired Paired t test Wilcoxon signed rank test >2 groups One-way ANOVA test Kruskal Wallis test Continuous Pearson Corr / Linear Reg Spearman Corr / Linear Reg 1 group Chi-square test / Exact test 2 groups Chi-square test / Fisher s exact test / Logistic regression Outcome variable Categorical Paired McNemar s test / Kappa statistic >2 groups Chi-square test / Fisher s exact test / Logistic regression Continuous Logistic regression / Sensitivity & specificity / ROC 2 groups KM plot with Log-rank test Survival >2 groups KM plot with Log-rank test Continuous Cox regression 7

Assessing Normality Charts can be used to informally assess whether data is: Normally distributed Or.Skewed The mean and median are very different for skewed data.

Chi-squared test statistic The chi-squared test is used when we want to see if two categorical variables are related The test statistic for the Chi-squared test uses the sum of the squared differences between each pair of observed (O) and expected values (E) 2 n i 1 O i E i E i 2

T-tests Paired or Independent (Unpaired) Data? T-tests are used to compare two population means Paired data: same individuals studied at two different times or under two conditions PAIRED T-TEST Independent: data collected from two separate groups INDEPENDENT SAMPLES T-TEST

Assumptions in t-tests Normality: Plot histograms One plot of the paired differences for any paired data Two (One for each group) for independent samples Don t have to be perfect, just roughly symmetric Equal Population variances: Compare sample standard deviations As a rough estimate, one should be no more than twice the other Do an F-test to formally test for differences However the t-test is very robust to violations of the assumptions of Normality and equal variances, particularly for moderate (i.e. >30) and larger sample sizes

What if the assumptions are not met? There are alternative tests which do not have these assumptions Test Check Equivalent non-parametric test Independent t-test Paired t-test Histograms of data by group Histogram of paired differences Mann-Whitney Wilcoxon signed rank

ANOVA Compares the means of several groups Which diet is best? Dependent: Weight lost (Scale) Independent: Diet 1, 2 or 3 (Nominal) Null hypothesis: The mean weight lost on diets 1, 2 and 3 is the same : 0 1 2 3 Alternative hypothesis: The mean weight lost on diets 1, 2 and 3 are not all the same H www.statstutor.ac.uk

Post hoc tests If there is a significant ANOVA result, pairwise comparisons are made They are t-tests with adjustments to keep the type 1 error to a minimum Tukey s and Scheffe s tests are the most commonly used post hoc tests. Hochberg s GT2 is better where the sample sizes for the groups are very different. www.statstutor.ac.uk

Assumptions for ANOVA Assumption How to check What to do if assumption not met Normality: The residuals (difference between observed and expected values) should be normally distributed Histograms/ QQ plots/ normality tests of residuals Do a Kruskall-Wallis test which is non-parametric (does not assume normality) Homogeneity of variance (each group should have a similar standard deviation) Levene s test Welch test instead of ANOVA and Games-Howell for post hoc or Kruskall-Wallis www.statstutor.ac.uk

Correlation Coefficient r Measures strength of a relationship between two continuous variables r = 0.9 r = 0.01 r = -0.9 www.statstutor.ac.uk

Summary Table of Statistical Tests Level of Measurement Sample Characteristics Correlation 1 Sample 2 Sample K Sample (i.e., >2) Independent Dependent Independent Dependent Categorical or Nominal Χ 2 or binomial Χ 2 Macnarmar s Χ 2 Χ 2 Cochran s Q Rank or Ordinal Mann Whitney U Wilcoxin Matched Pairs Signed Ranks Kruskal Wallis H Friendman s ANOVA Spearman s rho Parametric (Interval & Ratio) z test or t test t test between groups t test within groups 1 way ANOVA between groups 1 way ANOVA (within or repeated measure) Pearson s r Factorial (2 way) ANOVA (Plonskey, 2001)