R Programming Odds & Odds Ratios 1. Session 3 Overview 1.Odds 2.Odds Ratio (OR) 3.Confidence Intervals for OR’s 4.Inference based on OR’s 2.

Slides:



Advertisements
Similar presentations
Statistical Analysis SC504/HS927 Spring Term 2008
Advertisements

Comparing Two Proportions (p1 vs. p2)
Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. Relationships Between Categorical Variables Chapter 6.
KRUSKAL-WALIS ANOVA BY RANK (Nonparametric test)
Review Find the mean square (MS) based on these two samples. A.26.1 B.32.7 C.43.6 D.65.3 E M A = 14 M B = Flood.
Categorical Data. To identify any association between two categorical data. Example: 1,073 subjects of both genders were recruited for a study where the.
Introduction to Hypothesis Testing CJ 526 Statistical Analysis in Criminal Justice.
Chapter 2 Simple Comparative Experiments
Notes on Logistic Regression STAT 4330/8330. Introduction Previously, you learned about odds ratios (OR’s). We now transition and begin discussion of.
Probability (cont.). Assigning Probabilities A probability is a value between 0 and 1 and is written either as a fraction or as a proportion. For the.
5-3 Inference on the Means of Two Populations, Variances Unknown
HaDPop Measuring Disease and Exposure in Populations (MD) &
Chapter 12 Section 1 Inference for Linear Regression.
Logistic regression for binary response variables.
Standard Error of the Mean
+ Quantitative Statistics: Chi-Square ScWk 242 – Session 7 Slides.
AM Recitation 2/10/11.
Hypothesis Testing II The Two-Sample Case.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Ch 10 Comparing Two Proportions Target Goal: I can determine the significance of a two sample proportion. 10.1b h.w: pg 623: 15, 17, 21, 23.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 2 – Slide 1 of 25 Chapter 11 Section 2 Inference about Two Means: Independent.
Confidence Intervals Nancy D. Barker, M.S.. Statistical Inference.
Comparing two sample means Dr David Field. Comparing two samples Researchers often begin with a hypothesis that two sample means will be different from.
The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. Relationships Between Categorical Variables Chapter 6.
Chapter 13: Categorical Data Analysis Statistics.
Categorical data 1 Single proportion and comparison of 2 proportions دکتر سید ابراهیم جباری فر( (Dr. jabarifar تاریخ : 1388 / 2010 دانشیار دانشگاه علوم.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
Contingency tables Brian Healy, PhD. Types of analysis-independent samples OutcomeExplanatoryAnalysis ContinuousDichotomous t-test, Wilcoxon test ContinuousCategorical.
The binomial applied: absolute and relative risks, chi-square.
R Programming Risk & Relative Risk 1. Session 2 Overview 1.Risk 2.Relative Risk 3.Percent Increase/Decrease Risk 2.
Tests of Hypotheses Involving Two Populations Tests for the Differences of Means Comparison of two means: and The method of comparison depends on.
Inference for 2 Proportions Mean and Standard Deviation.
Statistical Significance for a two-way table Inference for a two-way table We often gather data and arrange them in a two-way table to see if two categorical.
Section A Confidence Interval for the Difference of Two Proportions Objectives: 1.To find the mean and standard error of the sampling distribution.
STT 315 Ashwini maurya This lecture is based on Chapter 5.4 Acknowledgement: Author is thankful to Dr. Ashok Sinha, Dr. Jennifer Kaplan and Dr. Parthanil.
Lecture & tutorial material prepared by: Dr. Shaffi Shaikh Tutorial presented by: Dr. Rufaidah Dabbagh Dr. Nurah Al-Amro.
: An alternative representation of level of significance. - normal distribution applies. - α level of significance (e.g. 5% in two tails) determines the.
Feb. 13 Chapter 12, Try 1-9 Read Ch. 15 for next Monday No meeting Friday.
More Contingency Tables & Paired Categorical Data Lecture 8.
Chapter 10 Statistical Inference for Two Samples More than one but less than three! Chapter 10B < X
1 Mean Analysis. 2 Introduction l If we use sample mean (the mean of the sample) to approximate the population mean (the mean of the population), errors.
Statistical significance using Confidence Intervals
Logistic regression (when you have a binary response variable)
Chapter 22 Comparing Two Proportions.  Comparisons between two percentages are much more common than questions about isolated percentages.  We often.
9-1 ESTIMATION Session Factors Affecting Confidence Interval Estimates The factors that determine the width of a confidence interval are: 1.The.
T tests comparing two means t tests comparing two means.
Chapter 12 Inference for Proportions AP Statistics 12.2 – Comparing Two Population Proportions.
Chapter 9: Introduction to the t statistic. The t Statistic The t statistic allows researchers to use sample data to test hypotheses about an unknown.
Introduction to Biostatistics, Harvard Extension School, Fall, 2005 © Scott Evans, Ph.D.1 Contingency Tables.
CONFIDANCE INTERVALS. The Aim By the end of this lecture, the students will be aware of confidance intervals 2.
Chapter 13 Logistic regression.
Effect Size 10/15.
How does the Unpaired t-Test work?
Notes on Logistic Regression
Chapter 4. Inference about Process Quality
Effect Size.
The binomial applied: absolute and relative risks, chi-square
Chapter 8: Inference for Proportions
Significance Tests: A Four-Step Process
Inferences About Means from Two Groups
Inferences On Two Samples
SA3202 Statistical Methods for Social Sciences
Statistical Inference for the Mean Confidence Interval
Lecture 7 The Odds/ Log Odds Ratios
Hypothesis Testing.
What are their purposes? What kinds?
Chapter 12 Inference for Proportions
Case-control studies: statistics
Presentation transcript:

R Programming Odds & Odds Ratios 1

Session 3 Overview 1.Odds 2.Odds Ratio (OR) 3.Confidence Intervals for OR’s 4.Inference based on OR’s 2

Introduction In the last session, we learned about the Relative Risk statistic that allowed us to compare the likelihood of an event between 2 groups. An Odds Ratio (OR) is another way to make this comparison. 3

Odds The odds of an event compares the chance that the event occurs to the chance that it does not. Ex: If there is a 60% chance of rain, then there is a 40% chance that it will not rain. The odds of it raining are 60 to 40, or 3 to 2. 4

Odds Odds are often expressed using the structure “a to b”, so a ratio is implied but often not actually computed. 5

Odds: Smoking Example For the nonsmokers, 374 divorced and 810 had not. Therefore, the odds of divorce for nonsmokers is 374 to 810 or,.46 to 1 (divide both numbers by 810). 6

Odds: Smoking Example Often times, it is easier to interpret an odds > 1 than an odds that is < 1. In order to facilitate interpretation, one can compute the odds of the non-event (i.e., remaining married) instead of finding the odds of the event (divorce). 7

Odds: Smoking Example Inversely, we could compute the odds of remaining married for nonsmokers, odds(married) = 810/374 = Therefore, nonsmokers are approximately 2 times more likely to remained married than to get a divorce. 8

Odds: Smoking Example For the smokers, 238 divorced and 247 had not. Therefore, the odds of divorce for smokers is 238 to 247 or,.96 to 1. Furthermore, the odds of remaining married for smokers is 247 to 238 or,

Properties of Odds 1.Odds are nonnegative. 2.When odds = 4, a success is 4 times as likely as failure (or we expect to observe 4 successes for every failure). 3.When odds = ¼, a failure is 4 times as likely as a success. 10

Odds Ratio The odds ratio (OR) compares the odds of an event of 2 different groups. 11

Odds Ratio: Smoking Ex. Therefore, the odds of divorcing to remaining married for smokers are double the odds for nonsmokers. 12

Properties of Odds Ratio 1.The OR is nonnegative. 2.The independence value (or null value) is 1.0. Therefore, when OR = 1, the 2 groups have the same odds of success. 3.When OR > 1, group 1 has higher odds of success. 4.When OR < 1, group 2 has higher odds of success. 13

Inference based on OR 1.The OR of a sample is a sample statistic that measures the association between success (event)/failure (non-event) and the grouping variable. 14

Inference based on OR 2.Like most sample statistics, we can compute confidence intervals for the OR to make inferences about the larger population based on the sample. 15

Inference based on OR 3.The formula for the CI for an OR is complicated and involves a natural log transformation, therefore, we will rely on R for the computations. 16

Inference based on OR 4.If the CI for an OR does not include 1, then we reject the H 0 of independence and conclude that differences in the odds of success do exist in the population. This is equivalent to concluding that the grouping variable is associated or related to the event. 17

OR: Smoking Example. The odds of divorce for smokers are approximately double the odds for nonsmokers, OR = Furthermore, a 95% CI for the OR does not include the null value of 1, (1.68, 2.59). Therefore, we conclude that an association between smoking behavior and marital status exists in the population. 18