



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: App Linear Stat Meth II; Subject: MATH Mathematics; University: Tennessee Tech University; Term: Unknown 1989;
Typology: Study notes
1 / 6
This page cannot be seen from the preview
Don't miss anything!




The extreme case of a binomial response where responses are just binary (i.e. Bernoulli random variables - which are binomial with n = 1) gives rise to some unique issues.
Example A study of 757 female Pima Indians in Phoenix, Arizona examined risk factors for diabetes. We will only consider a few of these risk factors in modeling the response variable test which is 1 if diabetes was present in a single observation and 0 otherwise. SAS implementation of this study is found in pima logistic.sas. The variables we will look at in this example are
A few summary statistics on the data (generated by PROC MEANS).
Diabetes among Pima Indians Statistic test age pregnant bmi Min 0 21 0 18. Q1 0 24 1 27. Med 0 29 3 32. Q3 1 41 6 36. Max 1 81 17 67.
Note:
2.6.1 Analysis of Binary Data
The implementation for binary data is very similar to that of binomial data (where n > 1). A piece of the SAS code for implementing a logistic regression model of the form
logit(π) = β 0 + β 1 bmi + β 2 age + β 3 pregnant
is found below.
proc logistic descending data=pima; model test = bmi age pregnant; run;
Note:
We can examine the parameter estimates below.
Analysis of Maximum Likelihood Estimates
Parameter DF Estimate Std Error Wald Chi-Sq Pr > ChiSq Intercept 1 -5.7052 0.5427 110.5095 <. bmi 1 0.1093 0.0132 68.4079 <. age 1 0.0331 0.0082 16.3239 <. pregnant 1 0.0853 0.0284 9.0008 0.
Parameter interpretation
X^2 = D∗(M 1 ) − D∗(M 0 ) ∼ χ^2 (p−q)
F =
p − q
∼ F( df 1 = p−q, df 2 = n−p )
2.6.3 Checks for Systematic Departures from the Model
Residual Patterns - Residuals for binary data are some of the most difficult to interpret because of the dichotomous nature of the response. These plots - for the most part - are noninformative. Probability plots based on the residuals for binary data are also noninfor- mative. Examples of these are included only for demonstration.
Systematic Departures in the Link Function
logit(π) = β 0 + β 1 bmi + β 2 age + β 3 pregnant + β 4 logithat 2
we notice that the square of the link function is significant - the Wald test for β 4 indi- cates a statistical difference from zero. This could indicate an incorrect link function, incorrect transformation on the predictor variables, or the omission of an important predictor. This may also be the reason that the Hosmer-Lemeshow test re- jected the fit.
Systematic Departures in the Scale of the Covariates
Systematic Checks in the Variance Function
The plot absresid*logit hat is noninformative.
2.6.4 Checks for Isolated Departures from the Model
The same procedures for binomial data are implemented for binary data. In general, datasets with a binary response tend to be rather large. Thus, calling the influence routine after the model statement in proc logistic could generate an exorbitant amount of output. Instead, we will output the same information to a file from which we will generate univariate summaries and plots as follows:
proc logistic descending data=pima; model test = bmi age pregnant; output out=resdata3 h = leverage resdev=deviance resid c=cooksdist; run;
proc univariate data=resdata3 plots nextrobs=40; var cooksdist deviance resid leverage; run;
proc plot data=resdata3; plot (leverage deviance resid cooksdist)*id; run;