Categorical Data Analysis: When life fits in little boxes AnnMaria DeMars, PhD.

Slides:



Advertisements
Similar presentations
Chapter 18: The Chi-Square Statistic
Advertisements

SPSS Session 5: Association between Nominal Variables Using Chi-Square Statistic.
COURSE: JUST 3900 INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE Instructor: Dr. John J. Kerbs, Associate Professor Joint Ph.D. in Social Work and Sociology.
Simple Logistic Regression
1 Contingency Tables: Tests for independence and homogeneity (§10.5) How to test hypotheses of independence (association) and homogeneity (similarity)
INTRODUCTION TO NON-PARAMETRIC ANALYSES CHI SQUARE ANALYSIS.
Chapter 13: The Chi-Square Test
Chapter 11 Contingency Table Analysis. Nonparametric Systems Another method of examining the relationship between independent (X) and dependant (Y) variables.
Determining and Interpreting Associations Among Variables.
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
PY 427 Statistics 1Fall 2006 Kin Ching Kong, Ph.D Lecture 12 Chicago School of Professional Psychology.
Chi-square Test of Independence
Crosstabs and Chi Squares Computer Applications in Psychology.
UNDERSTANDING RESEARCH RESULTS: STATISTICAL INFERENCE © 2012 The McGraw-Hill Companies, Inc.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton McNemar Test PowerPoint Prepared by Alfred P.
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
8/15/2015Slide 1 The only legitimate mathematical operation that we can use with a variable that we treat as categorical is to count the number of cases.
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.
Cross Tabulation and Chi-Square Testing. Cross-Tabulation While a frequency distribution describes one variable at a time, a cross-tabulation describes.
Lecture 8 Chi-Square STAT 3120 Statistical Methods I.
Statistics for the Social Sciences Psychology 340 Fall 2013 Thursday, November 21 Review for Exam #4.
AM Recitation 2/10/11.
Estimation and Hypothesis Testing Faculty of Information Technology King Mongkut’s University of Technology North Bangkok 1.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Binomial Test PowerPoint Prepared by Alfred P.
Copyright © 2008 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. John W. Creswell Educational Research: Planning,
1 Psych 5500/6500 Chi-Square (Part Two) Test for Association Fall, 2008.
230 Jeopardy Unit 4 Chi-Square Repeated- Measures ANOVA Factorial Design Factorial ANOVA Correlation $100 $200$200 $300 $500 $400 $300 $400 $300 $400 $500.
X 11 X 12 X 13 X 21 X 22 X 23 X 31 X 32 X 33. Research Question Are nursing homes dangerous for seniors? Does admittance to a nursing home increase risk.
Copyright © 2012 Wolters Kluwer Health | Lippincott Williams & Wilkins Chapter 17 Inferential Statistics.
Copyright © 2008 Wolters Kluwer Health | Lippincott Williams & Wilkins Chapter 22 Using Inferential Statistics to Test Hypotheses.
Chi-Square Test of Independence Practice Problem – 1
Proc freq: Five secrets* *Okay, well, lesser known facts.
Tests of Significance June 11, 2008 Ivan Katchanovski, Ph.D. POL 242Y-Y.
Chi-square (χ 2 ) Fenster Chi-Square Chi-Square χ 2 Chi-Square χ 2 Tests of Statistical Significance for Nominal Level Data (Note: can also be used for.
1 Chi-Square Heibatollah Baghi, and Mastee Badii.
Categorical Data Analysis: When life fits in little boxes AnnMaria DeMars, PhD.
Slide 1 Copyright © 2004 Pearson Education, Inc..
Chapter 13: Categorical Data Analysis Statistics.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Pearson Chi-Square Contingency Table Analysis.
1 In this case, each element of a population is assigned to one and only one of several classes or categories. Chapter 11 – Test of Independence - Hypothesis.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Nonparametric Tests: Chi Square   Lesson 16. Parametric vs. Nonparametric Tests n Parametric hypothesis test about population parameter (  or  2.
AnnMaria De Mars, Ph.D. The Julia Group Santa Monica, CA Categorical data analysis: For when your data DO fit in little boxes.
CHI SQUARE TESTS.
Categorical data analysis: An overview of statistical techniques AnnMaria De Mars The Julia Group AnnMaria De Mars The Julia Group.
METHODS IN BEHAVIORAL RESEARCH NINTH EDITION PAUL C. COZBY Copyright © 2007 The McGraw-Hill Companies, Inc.
Reasoning in Psychology Using Statistics Psychology
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11: Chi-Square  Chi-Square as a Statistical Test  Statistical Independence  Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
Why this is useful  Failure as a statistician/ analyst often is failure to clearly communicate  Need to communicate results to non-technical decision-
Chapter Eight: Using Statistics to Answer Questions.
1 STA 617 – Chp10 Models for matched pairs Summary  Describing categorical random variable – chapter 1  Poisson for count data  Binomial for binary.
Copyright © Cengage Learning. All rights reserved. Chi-Square and F Distributions 10.
Data Lab # 4 June 16, 2008 Ivan Katchanovski, Ph.D. POL 242Y-Y.
1 Chapter 15 Data Analysis: Basic Questions © 2005 Thomson/South-Western.
Week 13a Making Inferences, Part III t and chi-square tests.
Chapter 15 The Chi-Square Statistic: Tests for Goodness of Fit and Independence PowerPoint Lecture Slides Essentials of Statistics for the Behavioral.
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial.
Ch 13: Chi-square tests Part 2: Nov 29, Chi-sq Test for Independence Deals with 2 nominal variables Create ‘contingency tables’ –Crosses the 2 variables.
Chapter Eleven Performing the One-Sample t-Test and Testing Correlation.
Four way analysis Nursing home residence Gender Age Death.
©2006 Thomson/South-Western 1 Chapter 12 – Analysis of Categorical Data Slides prepared by Jeff Heyl Lincoln University ©2006 Thomson/South-Western Concise.
INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE
Qualitative data – tests of association
SA3202 Statistical Methods for Social Sciences
Chapter 18: The Chi-Square Statistic
Presentation transcript:

Categorical Data Analysis: When life fits in little boxes AnnMaria DeMars, PhD.

What are we going to do today? Basic statistics Logistic regression

An actual example Are you going to die soon?

Our data Kaiser Permanente Study of the Oldest Old, and : [California] DEPENDENT VARIABLE: Dthflag = 1 if Died during study period 0 if alive at end of study period

Our data PREDICTOR VARIABLES: nursehome = 0 if lived at home continuously 1 = admitted to nursing home at any time

We all knew FREQ DID THIS PROC FREQ DATA = dsname ; TABLES varname1 * varname2 / chisq ; …AND THAT WITH THIS YOU YOU GET: – Chi-square value (several) – Phi coefficient – Fisher Exact test (where applicable)

Lets Start Simple: PROC FREQ PROC FREQ DATA =in.old ; TABLES dthflag ;

Not Too Interesting… 55.4% of our sample died.

…So lets Dig Deeper: STACKED BAR CHART

Stacked Bar Chart with SAS Enterprise

STACKED BAR Figure 1

STACKED BAR Figure 2

The Syntax PROC GCHART DATA=mydata.oldpeople; VBAR gender / SUBGROUP=dthflag TYPE= PCT INSIDE=PCT ;

Lets Keep Digging! Association Measures

Enterprise Guide Method

The Syntax PROC FREQ DATA = mydata.oldpeople ; TABLES dthflag*nursehome / NOROW NOPERCENT NOCUM CHISQ MEASURES ;

Nursing home placement by death Conditional probabilities

Being able to find SPSS in the start menu does not qualify you to perform a multinomial logistic regression

Chi-square results

The options & what they tell you

Chi-square results Pearson ∑ (f o – f e ) 2 f e

Chi-square results

What is Fisher’s exact test & when do I get one?

Fisher’s Exact Test: probability of a table as unusual as the one that you have obtained under the null hypothesis of no relationship.

With 2 x 2 Tables it’s automatic

Recap: Fisher’s Exact Test Small sample size OR Need exact probability

A bunch of things you may not know Proc Freq Does

Computing odds ratios Divide frequency row 1, column 1 by frequency in row 2 column 2 2,846/184 = odds of a person who lived not being in a nursing home versus being in a home. Divide frequency in row 2, column 1 by frequency row 2, column 2 2,239/ 1,077 = 2.08 Divide first result by the second 13.51/ 2.08 = 6.49

Measures

Mantel-Haeszel chi-square Tests ordinal relationship Same as Pearson if only two categories

Ordinal relationship ?

Don’t just compare values

ER visits versus nursing home

More measures

Take-away 1.Different types of chi-square values, different types of correlations and other tests like odds ratios do exist. 2.These statistics are very easy to obtain using SAS. 3.While most times, all of these measures will point you in the direction of the same general conclusion, there are times when one is preferable to the others.

Take-away 2 Non-standard hypotheses call for non- standard statistics

What about this ? PROC FREQ DATA = dsname ; TABLES varname / BINOMIAL (EXACT EQUIV P =.333) ALPHA =.05 ;

What’s it Do? The binomial (equiv p =.333) will produce a test that the population proportion is.333 for the first category. That is “No” for death. A Z- value will be produced and probabilities for one-tail and two-tailed tests. The exact keyword will produce confidence intervals and, since I have specified alpha =.05, these will be the 95% confidence intervals.

Again, Not New

Hmmm…. This is interesting

Null rejected !