Log-linear Models For 2-dimensional tables. Two-Factor ANOVA (Mean rot of potatoes) Bacteria Type Temp123 1=Cool 2=Warm.

Slides:



Advertisements
Similar presentations
CHI-SQUARE(X2) DISTRIBUTION
Advertisements

Finish Anova And then Chi- Square. Fcrit Table A-5: 4 pages of values Left-hand column: df denominator df for MSW = n-k where k is the number of groups.
Three-dimensional tables (Please Read Chapter 3).
Sample Size Power and other methods. Non-central Chisquare.
Hypothesis: It is an assumption of population parameter ( mean, proportion, variance) There are two types of hypothesis : 1) Simple hypothesis :A statistical.
Simple Logistic Regression
Bivariate Analysis Cross-tabulation and chi-square.
The Analysis of Categorical Data. Categorical variables When both predictor and response variables are categorical: Presence or absence Color, etc. The.
Hypothesis Testing IV Chi Square.
Chapter 13: The Chi-Square Test
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
Chapter18 Determining and Interpreting Associations Among Variables.
THE CONCEPT OF STATISTICAL SIGNIFICANCE:
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Intro to Statistics for the Behavioral Sciences PSYC 1900 Lecture 17: Chi-Square.
Aaker, Kumar, Day Seventh Edition Instructor’s Presentation Slides
Statistical hypothesis testing – Inferential statistics II. Testing for associations.
1 Chapter 20 Two Categorical Variables: The Chi-Square Test.
1 of 27 PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2013, Michael Kalsher Michael J. Kalsher Department of Cognitive Science Adv. Experimental.
Hypothesis Testing IV (Chi Square)
Cross Tabulation and Chi-Square Testing. Cross-Tabulation While a frequency distribution describes one variable at a time, a cross-tabulation describes.
AM Recitation 2/10/11.
Categorical Data Prof. Andy Field.
Statistical Analysis I have all this data. Now what does it mean?
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
CENTRE FOR INNOVATION, RESEARCH AND COMPETENCE IN THE LEARNING ECONOMY Session 2: Basic techniques for innovation data analysis. Part I: Statistical inferences.
Analysis of Categorical Data
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.
Statistical Analysis I have all this data. Now what does it mean?
Chi-Square as a Statistical Test Chi-square test: an inferential statistics technique designed to test for significant relationships between two variables.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Factorial ANOVA More than one categorical explanatory variable STA305 Spring 2014.
Multinomial Distribution
Education 793 Class Notes Presentation 10 Chi-Square Tests and One-Way ANOVA.
FPP 28 Chi-square test. More types of inference for nominal variables Nominal data is categorical with more than two categories Compare observed frequencies.
Chi- square test x 2. Chi Square test Symbolized by Greek x 2 pronounced “Ki square” A Test of STATISTICAL SIGNIFICANCE for TABLE data.
10.1: Confidence Intervals Falls under the topic of “Inference.” Inference means we are attempting to answer the question, “How good is our answer?” Mathematically:
Learning Objectives Copyright © 2002 South-Western/Thomson Learning Statistical Testing of Differences CHAPTER fifteen.
Data Analysis for Two-Way Tables. The Basics Two-way table of counts Organizes data about 2 categorical variables Row variables run across the table Column.
Chi-Square Test ( 2 ) Chi-Square Test (  2 ) Used when dependent variable is counts within categories Used when DV has two or more mutually exclusive.
Chi Square Classifying yourself as studious or not. YesNoTotal Are they significantly different? YesNoTotal Read ahead Yes.
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.
Leftover Slides from Week Five. Steps in Hypothesis Testing Specify the research hypothesis and corresponding null hypothesis Compute the value of a test.
Chi-Square X 2. Review: the “null” hypothesis Inferential statistics are used to test hypotheses Whenever we use inferential statistics the “null hypothesis”
Copyright c 2001 The McGraw-Hill Companies, Inc.1 Chapter 11 Testing for Differences Differences betweens groups or categories of the independent variable.
Logistic Regression Saed Sayad 1www.ismartsoft.com.
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L14.1 Lecture 14: Contingency tables and log-linear models Appropriate questions.
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.
© 2006 by The McGraw-Hill Companies, Inc. All rights reserved. 1 Chapter 11 Testing for Differences Differences betweens groups or categories of the independent.
Categorical Data Analysis
Nonparametric Statistics
Logistic Regression For a binary response variable: 1=Yes, 0=No This slide show is a free open source document. See the last slide for copyright information.
Class Seven Turn In: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 For Class Eight: Chapter 20: 18, 20, 24 Chapter 22: 34, 36 Read Chapters 23 &
NURS 306, Nursing Research Lisa Broughton, MSN, RN, CCRN RESEARCH STATISTICS.
Log-linear Models Please read Chapter Two. We are interested in relationships between variables White VictimBlack Victim White Prisoner151 (151/160=0.94)
Test of independence: Contingency Table
Categorical Data Aims Loglinear models Categorical data
Is a persons’ size related to if they were bullied
Adding variables. There is a difference between assessing the statistical significance of a variable acting alone and a variable being added to a model.
Quadrat sampling & the Chi-squared test
Quadrat sampling & the Chi-squared test
Presentation transcript:

Log-linear Models For 2-dimensional tables

Two-Factor ANOVA (Mean rot of potatoes) Bacteria Type Temp123 1=Cool 2=Warm

Main effects are deviations of marginal means from the grand mean. Interaction represents how the profile of means for one variable depends on the level of the other variable – departure from an additive model. Main effects add to zero and interactions add to zero

Plotting Interactions

For a table with I rows and J columns Compare VariableLevel

Linear Model for the Log Expected Frequency Main effects are deviations of marginal mean log expected frequency from the grand mean of the log expected frequencies.

Interaction terms Represent Relationship between Variables Interaction means the pattern of probabilities for one variable depends on the value of the other variable. This means they are related. See how it works for a 2x2 table Start with the cross-product ratio alpha (not the same as the significance level, and not a main effect).

The cross-product ratio is an index of relationship m 11 m 12 m 21 m 22 p 11 p 12 p 21 p 22

alpha=1 means no relationship a ba (1-b)a (1-a) b(1-a) (1-b)1-a b1-b1

There really are 3 parameters

Independence => alpha=1 interaction = 0

Representing the probability of an event by p (Could be conditional) If p=1/2, odds =.5/(1-.5) = 1 (to 1) If p=2/3, odds = 2 (to 1) If p=3/5, odds = (3/5)/(2/5) = 1.5 (to 1) If p=1/5, odds =.25 (to 1)

Odds Ratio Conditional odds of being in Col One given in Row One Conditional odds of being in Col One given in Row Two = p 21 /p 22 Ratio of these two quantities is p 11 p 12 p 21 p 22

AdmittedNot Admitted Dept. A Dept. B Dept. C Dept. D Dept. E Dept. F The (estimated) odds of being accepted are times as great in Department A, compared to Department F.

Some things to notice The cross-product (odds) ratio is meaningful for large tables; apply it to 2x2 sub-tables. Re-arrange rows and columns as desired to get the cell you want in the upper left position. Combining rows or columns (especially columns) by adding the frequencies is natural and valid. If you hear something like “Chances of death before age 50 are four times as great for smokers,” most likely they are talking about an odds ratio.

No relationship means parallel slopes in the log scale p 11 p 12 p 21 p 22 Also applies to expected frequencies

Plot Log Observed Frequencies

The loglin Command

A General Rule For any 2-dimensional table, maximum likelihood under the null hypothesis of independence yields the same estimated expected frequencies used by the Pearson chisquare test. So you can always use And calculate either test statistic with df = (I-1)(J-1) Trust Pearson statistic more for smaller samples.

MLEs and parameters obey the same relationships.