Proc freq: Five secrets* *Okay, well, lesser known facts.

Slides:



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

COURSE: JUST 3900 INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE Instructor: Dr. John J. Kerbs, Associate Professor Joint Ph.D. in Social Work and Sociology.
Chi square.  Non-parametric test that’s useful when your sample violates the assumptions about normality required by other tests ◦ All other tests we’ve.
Simple Logistic Regression
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.
Copyright (c) Bani K. Mallick1 STAT 651 Lecture #17.
Two Sample Hypothesis Testing for Proportions
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
Estimation and Testing for Population Proportions Introduction to Business Statistics, 5e Kvanli/Guynes/Pavur (c)2000 South-Western College Publishing.
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.
Previous Lecture: Analysis of Variance
Hypothesis Testing Using The One-Sample t-Test
Goodness of Fit Test for Proportions of Multinomial Population Chi-square distribution Hypotheses test/Goodness of fit test.
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.
Analyzing Data: Bivariate Relationships Chapter 7.
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.
The Chi-Square Test Used when both outcome and exposure variables are binary (dichotomous) or even multichotomous Allows the researcher to calculate a.
AM Recitation 2/10/11.
Estimation and Hypothesis Testing Faculty of Information Technology King Mongkut’s University of Technology North Bangkok 1.
Inferential Statistics: SPSS
Analysis & Interpretation: Individual Variables Independently Chapter 12.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
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.
Chapter 21 Univariate Statistical Analysis © 2010 South-Western/Cengage Learning. All rights reserved. May not be scanned, copied or duplicated, or posted.
Chi-Square Test of Independence Practice Problem – 1
Tests of Significance June 11, 2008 Ivan Katchanovski, Ph.D. POL 242Y-Y.
1 Chi-Square Heibatollah Baghi, and Mastee Badii.
Slide 1 Copyright © 2004 Pearson Education, Inc..
© 2011 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license.
FOUNDATIONS OF NURSING RESEARCH Sixth Edition CHAPTER Copyright ©2012 by Pearson Education, Inc. All rights reserved. Foundations of Nursing Research,
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.
Categorical Data Analysis: When life fits in little boxes AnnMaria DeMars, PhD.
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.
Chapter 8 Introduction to Hypothesis Testing ©. Chapter 8 - Chapter Outcomes After studying the material in this chapter, you should be able to: 4 Formulate.
Section 9.2 Hypothesis Testing Proportions P-Value.
Jeopardy Hypothesis Testing t-test Basics t for Indep. Samples Related Samples t— Didn’t cover— Skip for now Ancient History $100 $200$200 $300 $500 $400.
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
Chapter 20: Testing Hypotheses About Proportions AP Statistics.
AnnMaria De Mars, Ph.D. The Julia Group Santa Monica, CA Categorical data analysis: For when your data DO fit in little boxes.
Learning Objectives Copyright © 2002 South-Western/Thomson Learning Statistical Testing of Differences CHAPTER fifteen.
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.
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.
Chapter 6: Analyzing and Interpreting Quantitative Data
Week 13a Making Inferences, Part III t and chi-square tests.
Making Comparisons All hypothesis testing follows a common logic of comparison Null hypothesis and alternative hypothesis – mutually exclusive – exhaustive.
Chapter 15 The Chi-Square Statistic: Tests for Goodness of Fit and Independence PowerPoint Lecture Slides Essentials of Statistics for the Behavioral.
Copyright © Cengage Learning. All rights reserved. 9 Inferences Based on Two Samples.
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.
Chapter Eleven Performing the One-Sample t-Test and Testing Correlation.
PowerPoint Presentation by Charlie Cook The University of West Alabama William G. Zikmund Barry J. Babin 9 th Edition Part 6 Data Analysis and Presentation.
NURS 306, Nursing Research Lisa Broughton, MSN, RN, CCRN RESEARCH STATISTICS.
©2006 Thomson/South-Western 1 Chapter 12 – Analysis of Categorical Data Slides prepared by Jeff Heyl Lincoln University ©2006 Thomson/South-Western Concise.
Qualitative data – tests of association
Chapter 18: The Chi-Square Statistic
Presentation transcript:

Proc freq: Five secrets* *Okay, well, lesser known facts

They said I wasn’t that interesting

1.Different and similar chi-squares 2.Fisher’s Exact Test. How to get one. Why you want one 3.Odds ratios 4.When NOT to compare chi-square values directly 5.Tests of binomial proportions

Proc freq getting the chi-square values & more

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

1. Chi-square values

Chi-square results

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

Chi-square results

2. 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

3. Odds ratios

Computing odds ratios Divide frequency row 1, column 1 by frequency in row 1 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

4. 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

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.

Testing hypothesis π = ? PROC FREQ DATA = dsname ; TABLES varname / BINOMIAL (EXACT EQUIV P =.333) ALPHA =.05 ;

BINOMIAL (EXACT EQUIV P =.333) ALPHA =.05 ; 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.

Different data I had lying around

Hmmm…. This is interesting

Null rejected !