Lecture 19: Conditional Logistic Regression
|
|
|
- Hope Watkins
- 9 years ago
- Views:
Transcription
1 Lecture 19: Conditional Logistic Regression Dipankar Bandyopadhyay, Ph.D. BMTRY 711: Analysis of Categorical Data Spring 2011 Division of Biostatistics and Epidemiology Medical University of South Carolina Lecture 19: Conditional Logistic Regression p. 1/40
2 Conditional Logistic Regression Purpose 1. Eliminate unwanted nuisance parameters 2. Use with sparse data Prior to the development of the conditional likelihood, lets review the unconditional (regular) likelihood associated with the logistic regression model. Suppose, we can group our covariates into J unique combinations and as such, we can form J (2 2) tables Lecture 19: Conditional Logistic Regression p. 2/40
3 First, consider the j th (2 2) table: TABLE j (or stratum W = j ) Variable (Y ) 1 2 Variable (X) 1 2 Y j11 Y j12 Y j1+ Y j21 Y j22 Y j2+ Y j+1 Y j+2 Y j++ Lecture 19: Conditional Logistic Regression p. 3/40
4 We can write the (2 2) data table of probabilities for stratum W = j as X Y p j1 1 p j1 1 2 p j2 1 p j2 1 Lecture 19: Conditional Logistic Regression p. 4/40
5 Unconditional Likelihood Let p j be the probability that a subject in stratum j has a success. Then the probability of observing y j events in stratum j is P(Y j = y j ) = n j y j! p y j j (1 p j) n j y j However, we know p j is a function of covariates Without loss of generality, assume we are interested in two covariates, x j1 and x j2, such that p j = eβ 0+β 1 x j1 +β 2 x j2 1 + e β 0+β 1 x j1 +β 2 x j2 Lecture 19: Conditional Logistic Regression p. 5/40
6 Then, the likelihood function can be written as L( y) = = = = JQ JQ JQ JQ n j y j! p y j j (1 p j) n j y j e β 0 +β 1 x j1 +β 2 x j2 1+e β 0 +β 1 x j1 +β 2 x j2 «yj e β 0 +β 1 x j1 +β 2 x j2 y j 1+e β 0 +β 1 x j1 +β 2 x j2 n j e β 0 t 0 +β 1 t 1 +β 2 t e β 0 +β 1 x j1 +β 2 x j2 JQ 1+e β 0 +β 1 x j1 +β 2 x n j2 j n j y j! n j y j! «(nj y j ) n j y j! where t k = JX y j x jk and t 0 = JX y j Lecture 19: Conditional Logistic Regression p. 6/40
7 The functions t 0, t 1, and t 2 are sufficient statistics for the data. Suppose we want to test β 2 = 0 using a likelihood ratio test. Then L(β 0, β 1 ) = and the LRT would equal JQ e β 0t 0 +β 1 t 1 `1 + e β 0 +β 1 x j1 nj JY n j y j! Λ( y) = 2(lnL(β 0, β 1 ) ln(l(β 0, β 1, β 2 ))) = 2ln L(β 0,β 1 ) = 2ln L(β 0,β 1,β 2 ) e β 0 t 0 +β 1 t 1 JQ 1+e β 0 +β 1 x j1 e β 0 t 0 +β 1 t 1 +β 2 t 2 JQ 1+e β 0 +β 1 x j1 +β 2 x j2 «nj J Q «nj J Q n j y j 1 A n j y j 1 A Which is distributed approximately chi-square with 1 df. Lecture 19: Conditional Logistic Regression p. 7/40
8 When you have small sample sizes, the chi-square approximation is not valid. We need a method to calculate the exact p value of H 0 : β 2 = 0 from the exact null distribution of Λ( y). Note that the distribution of Λ( y) depends on the exact distribution of y. Thus, we need to derive the exact distribution of y. Lecture 19: Conditional Logistic Regression p. 8/40
9 Under, H 0, β 2 = 0, so we will begin with P( y) = L(β 0, β 1 ) = JQ e β 0t 0 +β 1 t 1 `1 + e β 0 +β 1 x j1 nj JY n j y j! We cannot use the above probability statement because it relies on the population parameters (i.e., unknown constants) β 0 and β 1. That is, β 0 and β 1 are a nuisance to our calculations and as such are called nuisance parameters Similar to what we did in the Fisher s Exact Test, we are going to condition out β 0 and β 1 Lecture 19: Conditional Logistic Regression p. 9/40
10 Using Bayes Law, P( y t 0, t 1 ) = P JQ e β 0 t 0 +β 1 t 1 JQ 1+e β 0 +β 1 x n j1 j e β 0 t 0 +β 1 t 1 JQ JQ y Γ 1+e β 0 +β 1 x n j1 j n j y j n j y j!! where Γ is the set of all vectors of y such that JX y j = t 0 and 0 y j n j and y j is an integer. JX y j x 1j = t 1 Lecture 19: Conditional Logistic Regression p. 10/40
11 Then, P( y t 0, t 1 ) can be simplified to P( y t 0, t 1 ) = = = P e β 0 t 0 +β 1 t 1 JQ 1+e β 0 +β 1 x j1 e β 0 t 0 +β 1 t 1 y Γ JQ 1+e β 0 +β 1 x j1 e β 0 t 0 +β 1 t 1 JQ 1+e β 0 +β 1 x j1 e β 0 t 0 +β 1 t 1 JQ 1+e β 0 +β 1 x j1 0 n 1 j A y j 0 P n 1 j A y j y Γ «nj J Q n 1 j A y j 0 Q n j nj y j 1 A 0 1 Q n j nj y j A «nj P 0 y Γ n 1 j A y j which does not contain any unknown parameters and we can calculate the exact p value. Lecture 19: Conditional Logistic Regression p. 11/40
12 Let λ by any value such that Λ( y) = λ and denote Γ λ = { y : y Γ and Λ( y) = λ} Then P(Λ( y) = λ) = X y Γ λ P( y t 0, t 1 ) To obtain the exact p value for testing β 2 = 0 we need to: 1. Enumerate all values of λ 2. Calculate P(Λ( y) = λ) 3. p value equals the sum of the as extreme or more extreme values of P(Λ( y) = λ) Or use SAS PROC LOGISTIC or LogXact Lecture 19: Conditional Logistic Regression p. 12/40
13 Example Mantel (1963) Effectiveness of immediately injected penicillin or 1.5 hour delayed injected penicillin in protecting against β hemolytic Streptococci: Penicillin RESPONSE Level DELAY Died Cured 1/8 None hr 0 8 1/4 None hr 1 6 1/2 None hr None hr None hr 5 0 Lecture 19: Conditional Logistic Regression p. 13/40
14 Note, there are many 0 cells in the table; may have problems with the large sample normal approximations. We want to estimate the (common) OR between Delay and Response, given strata (Penicillin). We can consider the data as arising from J = 5, (2 2) tables, where J = 5 penicillin levels. In the k th row of (2 2) table j, we assume the data have the following logistic regression model: logit(p[cured penicillin=j, DELAY k ]) = µ + α j + βdelay k, where DELAY k = ( 0 if none 1 if 1.5 hours. There are problems with the unconditional (usual) MLE, as we ll see in the computer output. Lecture 19: Conditional Logistic Regression p. 14/40
15 This is equivalent to the logistic model logit{p[cured penicillin=j, DELAY]} = µ + α 1 z α 4 z 4 + βdelay k, where z j = ( 1 if penicillin=j 0 if otherwise. Note, we have not taken the ordinal nature of penicillin into account We are considering penicillin (and the associated dose) as a nuisance parameter and are not interested in drawing inference about penicillin We are interested in learning about the timing to give any dose of penicillin Lecture 19: Conditional Logistic Regression p. 15/40
16 SAS Proc Logistic Using SAS Proc Logistic, we get the following results: data cmh; input pen delay response count; cards; /* response: 1 = cured, 0 = died */ /* delay: 0 = none, 1 = 1.5 hrs */ ; Lecture 19: Conditional Logistic Regression p. 16/40
17 proc logistic descending; class pen(param=ref); model response = pen delay ; freq count; run; /* SELECTED OUTPUT */ Model Convergence Status Quasi-complete separation of data points detected. WARNING: The maximum likelihood estimate may not exist. WARNING: The LOGISTIC procedure continues in spite of the above warning. Results shown are based on the last maximum likelihood iteration. Validity the model fit is questionable. Lecture 19: Conditional Logistic Regression p. 17/40
18 Standard Wald Parameter DF Estimate Error Chi-Square Pr > ChiSq Intercept pen pen pen pen delay WARNING: The validity of the model fit is questionable. Odds Ratio Estimates Point 95% Wald Effect Estimate Confidence Limits pen vs 4 > <0.001 > pen 0.25 vs 4 > <0.001 > pen 0.5 vs 4 > <0.001 > pen 1 vs 4 > <0.001 > delay Lecture 19: Conditional Logistic Regression p. 18/40
19 Possible remedies There are (at least) two possible remedies to this problem: 1. Assign a score w j to penicillin level j and use this with logistic regression, or 2. Since we are interested in β = log(or RESPONSE,DELAY ), an alternative is to eliminate the nuisance parameters (the effects of PENICILLIN LEVEL) by using conditional logistic regression. Lecture 19: Conditional Logistic Regression p. 19/40
20 Assigning Scores Revised data step: data cmh; /* delay = 0 if None, 1 if 1.5 hr */ /* response = 1 if Cured, 0 if Died */ input pen delay response count; if pen = then pen1 = 1; else pen1=0; if pen = then pen2 = 1; else pen2=0; if pen = then pen3 = 1; else pen3=0; if pen = then pen4 = 1; else pen4=0; pen_cont = pen; cards;... (same as before) proc logistic descending; model response = pen_cont delay /aggregate scale=1; freq count; run; Lecture 19: Conditional Logistic Regression p. 20/40
21 Selected Results Analysis of Maximum Likelihood Estimates Standard Wald Parameter DF Estimate Error Chi-Square Pr > ChiSq Intercept pen_cont delay Odds Ratio Estimates Point 95% Wald Effect Estimate Confidence Limits pen_cont < delay Note: This model converged Lecture 19: Conditional Logistic Regression p. 21/40
22 Approach 2 - Elimination of Nuisance Parameters For the prospective study we have, the rows (y j1+ and y j2+ ) of each (2 2) table are fixed, and we have two independent binomials: 1) Row 1: Y j11 Bin(y j1+, p j1 ), where and 2) Row 2: where p j1 = P[Cured penicillin=j, DELAY = 1] Y j21 Bin(y j2+, p j2 ), p j2 = P[Cured penicillin=j, DELAY = 0] Lecture 19: Conditional Logistic Regression p. 22/40
23 In terms of the logistic model, logit(p[cured penicillin=j, DELAY = 1]) = logit(p j1 ) = µ + α j + β, and logit(p[cured penicillin=j, DELAY = 0]) = logit(p j2 ) = µ + α j Then the log-odds ratio for the j th, (2 2) table is log p j1/(1 p j1 ) p j2 /(1 p j2 ) = logit(p j1 ) logit(p j2 ) = [µ + α j + β] [µ + α j ] = β, and, the odds ratio is (OR RESPONSE,DELAY ) = p j1/(1 p j1 ) p j2 /(1 p j2 ) = eβ Lecture 19: Conditional Logistic Regression p. 23/40
24 Conditional Logistic Regression The conditional likelihood is JQ n j! L c ( y) = P JQ y j n j! y Γ y j which is the product of the probability functions over the J tables or strata. We can find the conditional MLE, ˆβ CMLE by maximizing L c (β). As with a single table, in large samples, ˆβ will be approximately unbiased, approximately normal, and have variance equal to the negative inverse of the (expected) second derivative. Lecture 19: Conditional Logistic Regression p. 24/40
25 What we mean by LARGE SAMPLES For proper properties of the conditional likelihood L c (β), we need large samples. There are two kinds of large samples that allow ˆβ CMLE to be approximately normal (by the central limit theorem). 1. We can have the within stata sample size (y j++ ) large (with the number of strata J being small). 2. As the number of strata, J, becomes large (we can y j++ <, and, actually, we can have y j++ as small as 2, which we will discuss later). As a result, we can have both (y j++ ) large and J large, and this would be a large sample as well. Lecture 19: Conditional Logistic Regression p. 25/40
26 This is in contrast to the usual (unconditional MLE); if you look at the logistic regression model logit{p[died penici=j, DELAY k ]} = µ + α j + βdelay k, in order to be able to estimate each α j, we need each y j++ to be large Lecture 19: Conditional Logistic Regression p. 26/40
27 In particular, if J is large, using unconditional logistic regression for logit(p jk ) = µ + α j + βx k, we will have a large number of parameters (α j s) to estimate, and we cannot unless each y j++ is also large. If y j++ is also large, then bβ CMLE b β MLE, but the MLE is preferable since it is simpler computationally, and has nice properties. Lecture 19: Conditional Logistic Regression p. 27/40
28 Mantel-Haenzsel Estimate One other possibility is the Mantel Haenszel estimate of a common odds ratio for a set of J, (2 2) tables, As with the conditional MLE, the Mantel-Haenszel estimator of the common odds ratio is (asymptotically unbiased) if either (y j++ ) is large or J is large or both. However, the Mantel-Haenzel estimate does not generalize to data with many covariates, whereas the conditional likelihood does. Lecture 19: Conditional Logistic Regression p. 28/40
29 CMH Using PROC FREQ However, for the data studied today, we can calculate the CMH (or just the Mantel-Haenzsel) proc freq; tables pen*delay*response/cmh; weight count; run; Estimates of the Common Relative Risk (Row1/Row2) Type of Study Method Value 95% Confidence Limits Case-Control Mantel-Haenszel (Odds Ratio) Logit ** ** These logit estimators use a correction of 0.5 in every cell of those tables that contain a zero. Tables with a zero row or a zero column are not included in computing the logit estimators. Lecture 19: Conditional Logistic Regression p. 29/40
30 Conditional Logistic Regression We can use SAS Proc Logistic as before to do conditional logistic regression. SAS Proc Logistic will give us the conditional logistic regression estimate of the odds ratio, and an exact 95% confidence interval for the odds ratio using the conditional likelihood. Lecture 19: Conditional Logistic Regression p. 30/40
31 SAS Proc Logistic proc logistic descending; class pen(param=ref); model response = pen delay ; exact delay / estimate = both /*both = logor & or */; freq count; run; /* SOME OUTPUT */ Conditional Exact Tests --- p-value --- Effect Test Statistic Exact Mid delay Score Probability Lecture 19: Conditional Logistic Regression p. 31/40
32 Exact Parameter Estimates 95% Confidence Parameter Estimate Limits p-value delay Exact Odds Ratios 95% Confidence Parameter Estimate Limits p-value delay Lecture 19: Conditional Logistic Regression p. 32/40
33 Effectiveness of immediately injected penicillin or 1.5 hour OR of Delayed injected penicillin in protecting against Streptococci ODDS 95% Confidence Limits Variable Ratio Lower Upper COND. LOGIT MANTEL-HA LOGISTIC* LOGISTIC** * From Proc Logistic with warning: The validity of the model fit is questionable. Uses dose as a class **Using dose with scores Lecture 19: Conditional Logistic Regression p. 33/40
34 From each, we see that odds of being cured if there is no delay is about 5 times of what it is if there is a delay. Although we get an estimate from (ordinarly) logistic regression, it is not as stable as the other methods. Note, these strata sizes were small, but there are situations when they are even smaller (matched pairs, discussed later). First though, let s look at a couple of other models. In particular, let s test for interaction. Lecture 19: Conditional Logistic Regression p. 34/40
35 Penicillin Data If we fit the model with interaction between delay and penicillin, (with 4 dummy variables for penicillin and the 4 for the interaction), and the unconditional had the same problems as above. The conditional also has problems: Proc Logistic gave me the following: proc logistic descending; class pen(param=ref); model response = pen delay pen*delay ; exact pen*delay /estimate; freq count; run; Lecture 19: Conditional Logistic Regression p. 35/40
36 SOME OUTPUT Exact Conditional Analysis Conditional Exact Tests --- p-value --- Effect Test Statistic Exact Mid delay*pen Score Probability Exact Parameter Estimates 95% Confidence Parameter Estimate Limits p-value delay*pen #... delay*pen 0.25.#... delay*pen 0.5.#... delay*pen 1.#... NOTE: # indicates that the conditional distribution is degenerate. Lecture 19: Conditional Logistic Regression p. 36/40
37 Proc Logistic can give us an exact conditional Score test (with p value =.1354), even though it cannot give us estimates of the interaction terms. Thus, I fit a little simpler model, with the main effects of penicillin fitted using dummy variables, but the interaction with penicillin continuous (w j ): logit(p[cured penici=j, DELAY=k]) = µ + α j + β 1 x k + β 12 x k w j, where x k = ( 0 if DELAY = none (k = 1) 1 if DELAY = 1.5 hours (k = 2). and w j equals the actual dose (0.125,.25,.5, or 1), treated as continuous. We are interested in testing for homogeneity of the odds ratio across the J stratum. Lecture 19: Conditional Logistic Regression p. 37/40
38 proc logistic descending; class pen(param=ref); model response = pen delay pen_cont*delay ; exact pen_cont*delay /estimate; freq count; run; Exact Parameter Estimates 95% Confidence Parameter Estimate Limits p-value delay*pen_cont Lecture 19: Conditional Logistic Regression p. 38/40
39 When W (pennicilin) is treated as continuous, logit(p[cured penici=j, DELAY=k]) = µ + γ 1 w j + β 1 x k + β 12 x k w j the unconditional logistic regression also converged, and we get the following comparison 95% Confidence Limits PEN*DELAY Parameter METHOD Estimate P Value COND UNCOND Although both algorithms converged, the estimates are pretty large, and the confidence intervals are very wide (not shown). However, we have indication that the common odds ratio assumption Lecture 19: Conditional is valid. Logistic Regression p. 39/40
40 LogXact All of the models could have been fit in LogXact, a software package specializing in conditional (or exact) logistic regression I noted small variations in the parameter estimates between SAS and LogXact. LogXact is mouse driven and is easy to use SAS is easier to do model building activities creation of derived variables, selection = routines and copy and paste model code Lecture 19: Conditional Logistic Regression p. 40/40
Lecture 14: GLM Estimation and Logistic Regression
Lecture 14: GLM Estimation and Logistic Regression Dipankar Bandyopadhyay, Ph.D. BMTRY 711: Analysis of Categorical Data Spring 2011 Division of Biostatistics and Epidemiology Medical University of South
VI. Introduction to Logistic Regression
VI. Introduction to Logistic Regression We turn our attention now to the topic of modeling a categorical outcome as a function of (possibly) several factors. The framework of generalized linear models
Overview Classes. 12-3 Logistic regression (5) 19-3 Building and applying logistic regression (6) 26-3 Generalizations of logistic regression (7)
Overview Classes 12-3 Logistic regression (5) 19-3 Building and applying logistic regression (6) 26-3 Generalizations of logistic regression (7) 2-4 Loglinear models (8) 5-4 15-17 hrs; 5B02 Building and
Lecture 18: Logistic Regression Continued
Lecture 18: Logistic Regression Continued Dipankar Bandyopadhyay, Ph.D. BMTRY 711: Analysis of Categorical Data Spring 2011 Division of Biostatistics and Epidemiology Medical University of South Carolina
Basic Statistical and Modeling Procedures Using SAS
Basic Statistical and Modeling Procedures Using SAS One-Sample Tests The statistical procedures illustrated in this handout use two datasets. The first, Pulse, has information collected in a classroom
STATISTICA Formula Guide: Logistic Regression. Table of Contents
: Table of Contents... 1 Overview of Model... 1 Dispersion... 2 Parameterization... 3 Sigma-Restricted Model... 3 Overparameterized Model... 4 Reference Coding... 4 Model Summary (Summary Tab)... 5 Summary
SAS Software to Fit the Generalized Linear Model
SAS Software to Fit the Generalized Linear Model Gordon Johnston, SAS Institute Inc., Cary, NC Abstract In recent years, the class of generalized linear models has gained popularity as a statistical modeling
Beginning Tutorials. PROC FREQ: It s More Than Counts Richard Severino, The Queen s Medical Center, Honolulu, HI OVERVIEW.
Paper 69-25 PROC FREQ: It s More Than Counts Richard Severino, The Queen s Medical Center, Honolulu, HI ABSTRACT The FREQ procedure can be used for more than just obtaining a simple frequency distribution
Multinomial and Ordinal Logistic Regression
Multinomial and Ordinal Logistic Regression ME104: Linear Regression Analysis Kenneth Benoit August 22, 2012 Regression with categorical dependent variables When the dependent variable is categorical,
Logit Models for Binary Data
Chapter 3 Logit Models for Binary Data We now turn our attention to regression models for dichotomous data, including logistic regression and probit analysis. These models are appropriate when the response
Wes, Delaram, and Emily MA751. Exercise 4.5. 1 p(x; β) = [1 p(xi ; β)] = 1 p(x. y i [βx i ] log [1 + exp {βx i }].
Wes, Delaram, and Emily MA75 Exercise 4.5 Consider a two-class logistic regression problem with x R. Characterize the maximum-likelihood estimates of the slope and intercept parameter if the sample for
11. Analysis of Case-control Studies Logistic Regression
Research methods II 113 11. Analysis of Case-control Studies Logistic Regression This chapter builds upon and further develops the concepts and strategies described in Ch.6 of Mother and Child Health:
Lecture 3: Linear methods for classification
Lecture 3: Linear methods for classification Rafael A. Irizarry and Hector Corrada Bravo February, 2010 Today we describe four specific algorithms useful for classification problems: linear regression,
Poisson Models for Count Data
Chapter 4 Poisson Models for Count Data In this chapter we study log-linear models for count data under the assumption of a Poisson error structure. These models have many applications, not only to the
I L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN
Beckman HLM Reading Group: Questions, Answers and Examples Carolyn J. Anderson Department of Educational Psychology I L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN Linear Algebra Slide 1 of
Using An Ordered Logistic Regression Model with SAS Vartanian: SW 541
Using An Ordered Logistic Regression Model with SAS Vartanian: SW 541 libname in1 >c:\=; Data first; Set in1.extract; A=1; PROC LOGIST OUTEST=DD MAXITER=100 ORDER=DATA; OUTPUT OUT=CC XBETA=XB P=PROB; MODEL
Using the Delta Method to Construct Confidence Intervals for Predicted Probabilities, Rates, and Discrete Changes
Using the Delta Method to Construct Confidence Intervals for Predicted Probabilities, Rates, Discrete Changes JunXuJ.ScottLong Indiana University August 22, 2005 The paper provides technical details on
Two Correlated Proportions (McNemar Test)
Chapter 50 Two Correlated Proportions (Mcemar Test) Introduction This procedure computes confidence intervals and hypothesis tests for the comparison of the marginal frequencies of two factors (each with
Cool Tools for PROC LOGISTIC
Cool Tools for PROC LOGISTIC Paul D. Allison Statistical Horizons LLC and the University of Pennsylvania March 2013 www.statisticalhorizons.com 1 New Features in LOGISTIC ODDSRATIO statement EFFECTPLOT
PROC LOGISTIC: Traps for the unwary Peter L. Flom, Independent statistical consultant, New York, NY
PROC LOGISTIC: Traps for the unwary Peter L. Flom, Independent statistical consultant, New York, NY ABSTRACT Keywords: Logistic. INTRODUCTION This paper covers some gotchas in SAS R PROC LOGISTIC. A gotcha
Multivariate Logistic Regression
1 Multivariate Logistic Regression As in univariate logistic regression, let π(x) represent the probability of an event that depends on p covariates or independent variables. Then, using an inv.logit formulation
This can dilute the significance of a departure from the null hypothesis. We can focus the test on departures of a particular form.
One-Degree-of-Freedom Tests Test for group occasion interactions has (number of groups 1) number of occasions 1) degrees of freedom. This can dilute the significance of a departure from the null hypothesis.
The Probit Link Function in Generalized Linear Models for Data Mining Applications
Journal of Modern Applied Statistical Methods Copyright 2013 JMASM, Inc. May 2013, Vol. 12, No. 1, 164-169 1538 9472/13/$95.00 The Probit Link Function in Generalized Linear Models for Data Mining Applications
Logistic Regression (1/24/13)
STA63/CBB540: Statistical methods in computational biology Logistic Regression (/24/3) Lecturer: Barbara Engelhardt Scribe: Dinesh Manandhar Introduction Logistic regression is model for regression used
Statistics in Retail Finance. Chapter 2: Statistical models of default
Statistics in Retail Finance 1 Overview > We consider how to build statistical models of default, or delinquency, and how such models are traditionally used for credit application scoring and decision
LOGISTIC REGRESSION ANALYSIS
LOGISTIC REGRESSION ANALYSIS C. Mitchell Dayton Department of Measurement, Statistics & Evaluation Room 1230D Benjamin Building University of Maryland September 1992 1. Introduction and Model Logistic
Tests for Two Proportions
Chapter 200 Tests for Two Proportions Introduction This module computes power and sample size for hypothesis tests of the difference, ratio, or odds ratio of two independent proportions. The test statistics
Basics of Statistical Machine Learning
CS761 Spring 2013 Advanced Machine Learning Basics of Statistical Machine Learning Lecturer: Xiaojin Zhu [email protected] Modern machine learning is rooted in statistics. You will find many familiar
Generalized Linear Models
Generalized Linear Models We have previously worked with regression models where the response variable is quantitative and normally distributed. Now we turn our attention to two types of models where the
LOGISTIC REGRESSION. Nitin R Patel. where the dependent variable, y, is binary (for convenience we often code these values as
LOGISTIC REGRESSION Nitin R Patel Logistic regression extends the ideas of multiple linear regression to the situation where the dependent variable, y, is binary (for convenience we often code these values
Logistic Regression. Jia Li. Department of Statistics The Pennsylvania State University. Logistic Regression
Logistic Regression Department of Statistics The Pennsylvania State University Email: [email protected] Logistic Regression Preserve linear classification boundaries. By the Bayes rule: Ĝ(x) = arg max
Statistical Machine Learning
Statistical Machine Learning UoC Stats 37700, Winter quarter Lecture 4: classical linear and quadratic discriminants. 1 / 25 Linear separation For two classes in R d : simple idea: separate the classes
Statistics 305: Introduction to Biostatistical Methods for Health Sciences
Statistics 305: Introduction to Biostatistical Methods for Health Sciences Modelling the Log Odds Logistic Regression (Chap 20) Instructor: Liangliang Wang Statistics and Actuarial Science, Simon Fraser
Ordinal Regression. Chapter
Ordinal Regression Chapter 4 Many variables of interest are ordinal. That is, you can rank the values, but the real distance between categories is unknown. Diseases are graded on scales from least severe
CREDIT SCORING MODEL APPLICATIONS:
Örebro University Örebro University School of Business Master in Applied Statistics Thomas Laitila Sune Karlsson May, 2014 CREDIT SCORING MODEL APPLICATIONS: TESTING MULTINOMIAL TARGETS Gabriela De Rossi
Logit and Probit. Brad Jones 1. April 21, 2009. University of California, Davis. Bradford S. Jones, UC-Davis, Dept. of Political Science
Logit and Probit Brad 1 1 Department of Political Science University of California, Davis April 21, 2009 Logit, redux Logit resolves the functional form problem (in terms of the response function in the
SUGI 29 Statistics and Data Analysis
Paper 194-29 Head of the CLASS: Impress your colleagues with a superior understanding of the CLASS statement in PROC LOGISTIC Michelle L. Pritchard and David J. Pasta Ovation Research Group, San Francisco,
CHAPTER 2 Estimating Probabilities
CHAPTER 2 Estimating Probabilities Machine Learning Copyright c 2016. Tom M. Mitchell. All rights reserved. *DRAFT OF January 24, 2016* *PLEASE DO NOT DISTRIBUTE WITHOUT AUTHOR S PERMISSION* This is a
Example: Credit card default, we may be more interested in predicting the probabilty of a default than classifying individuals as default or not.
Statistical Learning: Chapter 4 Classification 4.1 Introduction Supervised learning with a categorical (Qualitative) response Notation: - Feature vector X, - qualitative response Y, taking values in C
1. What is the critical value for this 95% confidence interval? CV = z.025 = invnorm(0.025) = 1.96
1 Final Review 2 Review 2.1 CI 1-propZint Scenario 1 A TV manufacturer claims in its warranty brochure that in the past not more than 10 percent of its TV sets needed any repair during the first two years
Poisson Regression or Regression of Counts (& Rates)
Poisson Regression or Regression of (& Rates) Carolyn J. Anderson Department of Educational Psychology University of Illinois at Urbana-Champaign Generalized Linear Models Slide 1 of 51 Outline Outline
Reject Inference in Credit Scoring. Jie-Men Mok
Reject Inference in Credit Scoring Jie-Men Mok BMI paper January 2009 ii Preface In the Master programme of Business Mathematics and Informatics (BMI), it is required to perform research on a business
LOGIT AND PROBIT ANALYSIS
LOGIT AND PROBIT ANALYSIS A.K. Vasisht I.A.S.R.I., Library Avenue, New Delhi 110 012 [email protected] In dummy regression variable models, it is assumed implicitly that the dependent variable Y
Chapter 12 Nonparametric Tests. Chapter Table of Contents
Chapter 12 Nonparametric Tests Chapter Table of Contents OVERVIEW...171 Testing for Normality...... 171 Comparing Distributions....171 ONE-SAMPLE TESTS...172 TWO-SAMPLE TESTS...172 ComparingTwoIndependentSamples...172
Developing Risk Adjustment Techniques Using the SAS@ System for Assessing Health Care Quality in the lmsystem@
Developing Risk Adjustment Techniques Using the SAS@ System for Assessing Health Care Quality in the lmsystem@ Yanchun Xu, Andrius Kubilius Joint Commission on Accreditation of Healthcare Organizations,
Chapter 3 RANDOM VARIATE GENERATION
Chapter 3 RANDOM VARIATE GENERATION In order to do a Monte Carlo simulation either by hand or by computer, techniques must be developed for generating values of random variables having known distributions.
Categorical Data Analysis
Richard L. Scheaffer University of Florida The reference material and many examples for this section are based on Chapter 8, Analyzing Association Between Categorical Variables, from Statistical Methods
Common Univariate and Bivariate Applications of the Chi-square Distribution
Common Univariate and Bivariate Applications of the Chi-square Distribution The probability density function defining the chi-square distribution is given in the chapter on Chi-square in Howell's text.
Two-Sample T-Tests Assuming Equal Variance (Enter Means)
Chapter 4 Two-Sample T-Tests Assuming Equal Variance (Enter Means) Introduction This procedure provides sample size and power calculations for one- or two-sided two-sample t-tests when the variances of
Linear Models for Continuous Data
Chapter 2 Linear Models for Continuous Data The starting point in our exploration of statistical models in social research will be the classical linear model. Stops along the way include multiple linear
SUMAN DUVVURU STAT 567 PROJECT REPORT
SUMAN DUVVURU STAT 567 PROJECT REPORT SURVIVAL ANALYSIS OF HEROIN ADDICTS Background and introduction: Current illicit drug use among teens is continuing to increase in many countries around the world.
SAS/STAT. 9.2 User s Guide. Introduction to. Nonparametric Analysis. (Book Excerpt) SAS Documentation
SAS/STAT Introduction to 9.2 User s Guide Nonparametric Analysis (Book Excerpt) SAS Documentation This document is an individual chapter from SAS/STAT 9.2 User s Guide. The correct bibliographic citation
Parametric and non-parametric statistical methods for the life sciences - Session I
Why nonparametric methods What test to use? Rank Tests Parametric and non-parametric statistical methods for the life sciences - Session I Liesbeth Bruckers Geert Molenberghs Interuniversity Institute
Some Essential Statistics The Lure of Statistics
Some Essential Statistics The Lure of Statistics Data Mining Techniques, by M.J.A. Berry and G.S Linoff, 2004 Statistics vs. Data Mining..lie, damn lie, and statistics mining data to support preconceived
Chapter 7 Notes - Inference for Single Samples. You know already for a large sample, you can invoke the CLT so:
Chapter 7 Notes - Inference for Single Samples You know already for a large sample, you can invoke the CLT so: X N(µ, ). Also for a large sample, you can replace an unknown σ by s. You know how to do a
Statistics and Data Analysis
NESUG 27 PRO LOGISTI: The Logistics ehind Interpreting ategorical Variable Effects Taylor Lewis, U.S. Office of Personnel Management, Washington, D STRT The goal of this paper is to demystify how SS models
ASSIGNMENT 4 PREDICTIVE MODELING AND GAINS CHARTS
DATABASE MARKETING Fall 2015, max 24 credits Dead line 15.10. ASSIGNMENT 4 PREDICTIVE MODELING AND GAINS CHARTS PART A Gains chart with excel Prepare a gains chart from the data in \\work\courses\e\27\e20100\ass4b.xls.
ABSTRACT INTRODUCTION
Paper SP03-2009 Illustrative Logistic Regression Examples using PROC LOGISTIC: New Features in SAS/STAT 9.2 Robert G. Downer, Grand Valley State University, Allendale, MI Patrick J. Richardson, Van Andel
Estimation of σ 2, the variance of ɛ
Estimation of σ 2, the variance of ɛ The variance of the errors σ 2 indicates how much observations deviate from the fitted surface. If σ 2 is small, parameters β 0, β 1,..., β k will be reliably estimated
Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model
Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model 1 September 004 A. Introduction and assumptions The classical normal linear regression model can be written
Unit 12 Logistic Regression Supplementary Chapter 14 in IPS On CD (Chap 16, 5th ed.)
Unit 12 Logistic Regression Supplementary Chapter 14 in IPS On CD (Chap 16, 5th ed.) Logistic regression generalizes methods for 2-way tables Adds capability studying several predictors, but Limited to
Section 13, Part 1 ANOVA. Analysis Of Variance
Section 13, Part 1 ANOVA Analysis Of Variance Course Overview So far in this course we ve covered: Descriptive statistics Summary statistics Tables and Graphs Probability Probability Rules Probability
Likelihood: Frequentist vs Bayesian Reasoning
"PRINCIPLES OF PHYLOGENETICS: ECOLOGY AND EVOLUTION" Integrative Biology 200B University of California, Berkeley Spring 2009 N Hallinan Likelihood: Frequentist vs Bayesian Reasoning Stochastic odels and
Dongfeng Li. Autumn 2010
Autumn 2010 Chapter Contents Some statistics background; ; Comparing means and proportions; variance. Students should master the basic concepts, descriptive statistics measures and graphs, basic hypothesis
Auxiliary Variables in Mixture Modeling: 3-Step Approaches Using Mplus
Auxiliary Variables in Mixture Modeling: 3-Step Approaches Using Mplus Tihomir Asparouhov and Bengt Muthén Mplus Web Notes: No. 15 Version 8, August 5, 2014 1 Abstract This paper discusses alternatives
MISSING DATA TECHNIQUES WITH SAS. IDRE Statistical Consulting Group
MISSING DATA TECHNIQUES WITH SAS IDRE Statistical Consulting Group ROAD MAP FOR TODAY To discuss: 1. Commonly used techniques for handling missing data, focusing on multiple imputation 2. Issues that could
Chapter 29 The GENMOD Procedure. Chapter Table of Contents
Chapter 29 The GENMOD Procedure Chapter Table of Contents OVERVIEW...1365 WhatisaGeneralizedLinearModel?...1366 ExamplesofGeneralizedLinearModels...1367 TheGENMODProcedure...1368 GETTING STARTED...1370
Maximum Likelihood Estimation
Math 541: Statistical Theory II Lecturer: Songfeng Zheng Maximum Likelihood Estimation 1 Maximum Likelihood Estimation Maximum likelihood is a relatively simple method of constructing an estimator for
Guido s Guide to PROC FREQ A Tutorial for Beginners Using the SAS System Joseph J. Guido, University of Rochester Medical Center, Rochester, NY
Guido s Guide to PROC FREQ A Tutorial for Beginners Using the SAS System Joseph J. Guido, University of Rochester Medical Center, Rochester, NY ABSTRACT PROC FREQ is an essential procedure within BASE
Class 19: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.1)
Spring 204 Class 9: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.) Big Picture: More than Two Samples In Chapter 7: We looked at quantitative variables and compared the
Two-Sample T-Tests Allowing Unequal Variance (Enter Difference)
Chapter 45 Two-Sample T-Tests Allowing Unequal Variance (Enter Difference) Introduction This procedure provides sample size and power calculations for one- or two-sided two-sample t-tests when no assumption
Introduction to Quantitative Methods
Introduction to Quantitative Methods October 15, 2009 Contents 1 Definition of Key Terms 2 2 Descriptive Statistics 3 2.1 Frequency Tables......................... 4 2.2 Measures of Central Tendencies.................
Non-Inferiority Tests for Two Proportions
Chapter 0 Non-Inferiority Tests for Two Proportions Introduction This module provides power analysis and sample size calculation for non-inferiority and superiority tests in twosample designs in which
ln(p/(1-p)) = α +β*age35plus, where p is the probability or odds of drinking
Dummy Coding for Dummies Kathryn Martin, Maternal, Child and Adolescent Health Program, California Department of Public Health ABSTRACT There are a number of ways to incorporate categorical variables into
Final Exam Practice Problem Answers
Final Exam Practice Problem Answers The following data set consists of data gathered from 77 popular breakfast cereals. The variables in the data set are as follows: Brand: The brand name of the cereal
Numerical Issues in Statistical Computing for the Social Scientist
Numerical Issues in Statistical Computing for the Social Scientist Micah Altman Jeff Gill Michael McDonald A Wiley-Interscience Publication JOHN WILEY & SONS, INC. New York / Chichester / Weinheim / Brisbane
2WB05 Simulation Lecture 8: Generating random variables
2WB05 Simulation Lecture 8: Generating random variables Marko Boon http://www.win.tue.nl/courses/2wb05 January 7, 2013 Outline 2/36 1. How do we generate random variables? 2. Fitting distributions Generating
Basic Statistics and Data Analysis for Health Researchers from Foreign Countries
Basic Statistics and Data Analysis for Health Researchers from Foreign Countries Volkert Siersma [email protected] The Research Unit for General Practice in Copenhagen Dias 1 Content Quantifying association
Chi-square test Fisher s Exact test
Lesson 1 Chi-square test Fisher s Exact test McNemar s Test Lesson 1 Overview Lesson 11 covered two inference methods for categorical data from groups Confidence Intervals for the difference of two proportions
6.2 Permutations continued
6.2 Permutations continued Theorem A permutation on a finite set A is either a cycle or can be expressed as a product (composition of disjoint cycles. Proof is by (strong induction on the number, r, of
Confidence Intervals for the Difference Between Two Means
Chapter 47 Confidence Intervals for the Difference Between Two Means Introduction This procedure calculates the sample size necessary to achieve a specified distance from the difference in sample means
Multinomial and ordinal logistic regression using PROC LOGISTIC Peter L. Flom National Development and Research Institutes, Inc
ABSTRACT Multinomial and ordinal logistic regression using PROC LOGISTIC Peter L. Flom National Development and Research Institutes, Inc Logistic regression may be useful when we are trying to model a
α α λ α = = λ λ α ψ = = α α α λ λ ψ α = + β = > θ θ β > β β θ θ θ β θ β γ θ β = γ θ > β > γ θ β γ = θ β = θ β = θ β = β θ = β β θ = = = β β θ = + α α α α α = = λ λ λ λ λ λ λ = λ λ α α α α λ ψ + α =
Notes on the Negative Binomial Distribution
Notes on the Negative Binomial Distribution John D. Cook October 28, 2009 Abstract These notes give several properties of the negative binomial distribution. 1. Parameterizations 2. The connection between
Introduction to Fixed Effects Methods
Introduction to Fixed Effects Methods 1 1.1 The Promise of Fixed Effects for Nonexperimental Research... 1 1.2 The Paired-Comparisons t-test as a Fixed Effects Method... 2 1.3 Costs and Benefits of Fixed
Additional sources Compilation of sources: http://lrs.ed.uiuc.edu/tseportal/datacollectionmethodologies/jin-tselink/tselink.htm
Mgt 540 Research Methods Data Analysis 1 Additional sources Compilation of sources: http://lrs.ed.uiuc.edu/tseportal/datacollectionmethodologies/jin-tselink/tselink.htm http://web.utk.edu/~dap/random/order/start.htm
Lin s Concordance Correlation Coefficient
NSS Statistical Software NSS.com hapter 30 Lin s oncordance orrelation oefficient Introduction This procedure calculates Lin s concordance correlation coefficient ( ) from a set of bivariate data. The
MULTIPLE REGRESSION AND ISSUES IN REGRESSION ANALYSIS
MULTIPLE REGRESSION AND ISSUES IN REGRESSION ANALYSIS MSR = Mean Regression Sum of Squares MSE = Mean Squared Error RSS = Regression Sum of Squares SSE = Sum of Squared Errors/Residuals α = Level of Significance
Regression 3: Logistic Regression
Regression 3: Logistic Regression Marco Baroni Practical Statistics in R Outline Logistic regression Logistic regression in R Outline Logistic regression Introduction The model Looking at and comparing
Chapter 13 Introduction to Nonlinear Regression( 非 線 性 迴 歸 )
Chapter 13 Introduction to Nonlinear Regression( 非 線 性 迴 歸 ) and Neural Networks( 類 神 經 網 路 ) 許 湘 伶 Applied Linear Regression Models (Kutner, Nachtsheim, Neter, Li) hsuhl (NUK) LR Chap 10 1 / 35 13 Examples
Linear Classification. Volker Tresp Summer 2015
Linear Classification Volker Tresp Summer 2015 1 Classification Classification is the central task of pattern recognition Sensors supply information about an object: to which class do the object belong
Variables Control Charts
MINITAB ASSISTANT WHITE PAPER This paper explains the research conducted by Minitab statisticians to develop the methods and data checks used in the Assistant in Minitab 17 Statistical Software. Variables
Nonparametric Statistics
Nonparametric Statistics J. Lozano University of Goettingen Department of Genetic Epidemiology Interdisciplinary PhD Program in Applied Statistics & Empirical Methods Graduate Seminar in Applied Statistics
ANALYSING LIKERT SCALE/TYPE DATA, ORDINAL LOGISTIC REGRESSION EXAMPLE IN R.
ANALYSING LIKERT SCALE/TYPE DATA, ORDINAL LOGISTIC REGRESSION EXAMPLE IN R. 1. Motivation. Likert items are used to measure respondents attitudes to a particular question or statement. One must recall
Statistics, Data Analysis & Econometrics
Using the LOGISTIC Procedure to Model Responses to Financial Services Direct Marketing David Marsh, Senior Credit Risk Modeler, Canadian Tire Financial Services, Welland, Ontario ABSTRACT It is more important
Logistic Regression. http://faculty.chass.ncsu.edu/garson/pa765/logistic.htm#sigtests
Logistic Regression http://faculty.chass.ncsu.edu/garson/pa765/logistic.htm#sigtests Overview Binary (or binomial) logistic regression is a form of regression which is used when the dependent is a dichotomy
Section Format Day Begin End Building Rm# Instructor. 001 Lecture Tue 6:45 PM 8:40 PM Silver 401 Ballerini
NEW YORK UNIVERSITY ROBERT F. WAGNER GRADUATE SCHOOL OF PUBLIC SERVICE Course Syllabus Spring 2016 Statistical Methods for Public, Nonprofit, and Health Management Section Format Day Begin End Building
Maximum Likelihood Estimation of Logistic Regression Models: Theory and Implementation
Maximum Likelihood Estimation of Logistic Regression Models: Theory and Implementation Abstract This article presents an overview of the logistic regression model for dependent variables having two or
