Copyright © 1999-2008 Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international.

Slides:



Advertisements
Similar presentations
Continued Psy 524 Ainsworth
Advertisements

Chapter 2 Describing Contingency Tables Reported by Liu Qi.
© Department of Statistics 2012 STATS 330 Lecture 32: Slide 1 Stats 330: Lecture 32.
Logistic Regression I Outline Introduction to maximum likelihood estimation (MLE) Introduction to Generalized Linear Models The simplest logistic regression.
Lecture 22: Evaluation April 24, 2010.
Logistic Regression Example: Horseshoe Crab Data
Overview of Logistics Regression and its SAS implementation
Regression With Categorical Variables. Overview Regression with Categorical Predictors Logistic Regression.
1 SAS Formats and SAS Macro Language HRP223 – 2011 November 9 th, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
1 Merging with SQL HRP223 – 2011 October 31, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
1 Lab 2 HRP223 – 2010 October 18, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
1 Processing Grouped Data HRP223 – 2011 November 14 th, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
1 Combining (with SQL) HRP223 – 2010 October 27, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
1 Creating and Tweaking Data HRP223 – 2010 October 24, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Midterm Review Goodness of Fit and Predictive Accuracy
Logistic Regression Biostatistics 510 March 15, 2007 Vanessa Perez.
Notes on Logistic Regression STAT 4330/8330. Introduction Previously, you learned about odds ratios (OR’s). We now transition and begin discussion of.
April 6, 2010 Generalized Linear Models 2010 LISA Short Course Series Mark Seiss, Dept. of Statistics.
SAS for Categorical Data Copyright © 2004 Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright.
Logistic Regression In logistic regression the outcome variable is binary, and the purpose of the analysis is to assess the effects of multiple explanatory.
STAT E-150 Statistical Methods
Regression and Correlation
Logistic Regression II Simple 2x2 Table (courtesy Hosmer and Lemeshow) Exposure=1Exposure=0 Disease = 1 Disease = 0.
1 G Lect 11W Logistic Regression Review Maximum Likelihood Estimates Probit Regression and Example Model Fit G Multiple Regression Week 11.
Statistics for clinical research An introductory course.
Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international.
HPR Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
1 Lab 2 and Merging Data (with SQL) HRP223 – 2009 October 19, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
Logistic Regression Database Marketing Instructor: N. Kumar.
Different Distributions David Purdie. Topics Application of GEE to: Binary outcomes: – logistic regression Events over time (rate): –Poisson regression.
1 היחידה לייעוץ סטטיסטי אוניברסיטת חיפה פרופ’ בנימין רייזר פרופ’ דוד פרג’י גב’ אפרת ישכיל.
When and why to use Logistic Regression?  The response variable has to be binary or ordinal.  Predictors can be continuous, discrete, or combinations.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international.
Stopouts and Readmits: Using Student Record and NSC Data to Predict Re- Enrollment Jerret K. LeMay, Research Analyst, Institutional Research & Planning.
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Logistic Regression. Linear Regression Purchases vs. Income.
AMMBR II Gerrit Rooks. Checking assumptions in logistic regression Hosmer & Lemeshow Residuals Multi-collinearity Cooks distance.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Applied Epidemiologic Analysis - P8400 Fall 2002 Labs 6 & 7 Case-Control Analysis ----Logistic Regression Henian Chen, M.D., Ph.D.
Logistic Regression Analysis Gerrit Rooks
Logistic Regression Saed Sayad 1www.ismartsoft.com.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
HRP 223 – 2007 lm.ppt - Linear Models Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
1 Data Manipulation (with SQL) HRP223 – 2009 October 12, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Beginning Data Manipulation HRP Topic 4 Oct 14 th 2012 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Analysis of matched data Analysis of matched data.
Chapter 13 LOGISTIC REGRESSION. Set of independent variables Categorical outcome measure, generally dichotomous.
BINARY LOGISTIC REGRESSION
Logistic Regression APKC – STATS AFAC (2016).
Notes on Logistic Regression
Working with Data in Windows
SAS Output Delivery System
Diagnosis II Dr. Brent E. Faught, Ph.D. Assistant Professor
Combining (with SQL) HRP223 – 2013 October 30, 2013
Logistic Regression.
BIVARIATE ANALYSIS: Measures of Association Between Two Variables
Lab 3 and HRP259 Lab and Combining (with SQL)
Lab 2 and Merging Data (with SQL)
Combining (with SQL) HRP223 – 2012 November 05, 2011
Lab 2 HRP223 – 2010 October 18, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
Topic 10 - Categorical Outcomes
BIVARIATE ANALYSIS: Measures of Association Between Two Variables
A Bit About SAS/Macro Language Database Theory and Normalization
File Sharing and Processing Grouped Data
Data Manipulation (with SQL)
Processing Grouped Data
Presentation transcript:

Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international treaties. Unauthorized reproduction of this presentation, or any portion of it, may result in severe civil and criminal penalties and will be prosecuted to maximum extent possible under the law. HRP Topic 10 - Categorical Outcomes

Pearson Modeling Effect Size +/- 1 for 2x2 tables with Less Adverse Events Odds ratio = 22/44 ÷ 28/24 Relative Risk 1 = 22/66 ÷ 28/52 (χ 2 /N) ^.5

HRP Chi-Square Working  χ 2 = (Observed # - Expected #) 2 / Expected #  χ 2 determines if an association exits  χ 2 does not measure the strength of the association  χ 2 depends on and reflects sample size

 Right click on the flowchart or File > New…

HRP Tables Bigger than 2 x 2

Type “ Yes” with a leading blank

HRP

(16 * * * 3) / 71 = mean for ACT (24 * * * 3) / 71 = mean for Placebo

OR: 29/23 ÷ 40/60 = 1.891

If you model the wrong outcome, tweak this. You can control parameterization here.

Impact of drug relative to an on placebo baseline The model found an answer. If you have prefect prediction (0 frequencies in the contingency tables), expect problems. Use the response variable sort order if you are predicting the wrong outcome. Watch for missing data.

Akaike’s Information Criterion, Schwartz Criterion, -2 log likelihood are here. All are used to compare nested models. AIC and SC penalize you for the number of parameters. Overall, is the model any good?

Domer’s D (nc-nd) / t Gamma (nc –nd) / (nc + nd) Tau-a (nc – nd) / (.5 * N * N-1) c = (nc +.5 * (t-nc –nd)) / t nc = # concordant pairs Nd = # discordant pairs t = pairs with different response values c = area under the ROC curve Somer’s D = 2(c-.5) Concordant = Given a pair of observations with different values in the response variable, the model correctly assigns the higher probability of the outcome to the person with the outcome.

Sensitivity: Correctly identify the presence of a condition in those with the disease. Specificity: Correctly identify the lack of a condition in those without the disease.

HRP Odds of a Month in Remission

HRP Profile likelihood are more accurate (especially for small samples) but they need extra horsepower to calculate.

HRP Confidence Intervals

Don’t interpret these as the % of variance accounted for in your model.

Image from: Categorical Data Analysis Using Logistic Regression Course Notes (2005) SAS.

Like leverage Standardized change in parameters if this observation is dropped How good does the model do at predicting each person Overall change in parameters if this observation is dropped. Like cooks distance.

Events (healthy) Not events (sick) Poorly fit are in the upper corners. Rough rule of thumb is > 4. See Hosmer and Lemeshow (2000).

Modify the code to get a better plot showing the impact on the CLs.

HRP Look for big bubbles and you can hover the mouse over the dots to see the subject- observation number.

HRP Are you missing interactions?  Compare you model vs. a saturated model.  It does not make sense if you have continuous variables in the model.

HRP Use H and L if you have continuous predictors in the model.

Logistic “issues”

Conditional Logistic They forgot the strata task role! Use “Group analysis by” then tweak the code. You want to predict BBD, so change response variable sort order to descending.

HRP Change “by” into strata.