|
Chapter Contents |
Previous |
Next |
| The LOGISTIC Procedure |
Researchers are interested in analyzing how mortality rates change with respect to dosage of a drug. The data contains life/death outcomes for six levels of drug dosage (0 to 5). One subject in each of three different research centers (A to C) is given a specific dose of the drug, and the Response is recorded as 0 for survival and 1 for death; the Z variable will be used in a later analysis:
data dose;
input Center $ Dose Response @@;
Z = 2 - Response;
datalines;
A 0 0 B 0 0 C 0 0
A 1 0 B 1 0 C 1 0
A 2 0 B 2 0 C 2 0
A 3 0 B 3 0 C 3 0
A 4 1 B 4 0 C 4 0
A 5 1 B 5 0 C 5 1
;
Since all of the cells have counts
that are less than 5, the applicability of large sample theory
is questionable. For each subject i receiving dosage xi,
i=1,...,18, let Yi=1 if the subject died, Yi=0 otherwise,
and
. Then the linear logistic model for
this problem is
, which
fits a common intercept and slope for the i subjects. In the PROC
LOGISTIC invocation below, the EXACT statement requests an exact
analysis and the ESTIMATE option produces exact parameter
estimates:
proc logistic data=dose descending;
model Response = Dose;
exact Dose / estimate=both;
run;
Output 7.1.1 displays some of the unconditional asymptotic results
that are produced by default. The likelihood ratio and score tests
reject the null hypothesis that
is zero. However, the Wald
test does not reject this null hypothesis. The conflicting
conclusions of these tests are a telltale sign that the large sample
approximation is unreliable. The estimates for the intercept
and the slope
both have p-values greater than
0.05, indicating marginal influence. The confidence limits for
the odds ratio of the dose parameter contains the value 1, from
which you could conclude, if you accept the model, that there is no
change in mortality with a change in dosage.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
You can also perform a stratified analysis to control for the research centers. The strata are treated as nuisance parameters and a conditional likelihood removes them from the analysis. Your model contains a different intercept term for each stratum:

With PROC LOGISTIC, you can specify a stratification variable by including it in the CLASS statement. For example, a stratification variable that has three levels can be parameterized as
| Stratum | Level 1 | Level 2 |
| 1 | 1 | 0 |
| 2 | 0 | 1 |
| 3 | 0 | 0 |
where the usual intercept term represents the last strata level, and the other strata levels are a combination of the intercept and the appropriate level term. This is defined in the CLASS statement with the PARAM=REF option.
You can perform a stratified analysis by using the following statements, where Center is defined to be a classification variable and is conditioned out of the analysis by specifying only Dose in the EXACT statement.
proc logistic data=dose descending;
class Center / param=ref;
model Response = Center Dose;
exact Dose / estimate=both;
run;
The usual asymptotic analysis indicates that there is complete separation of the data. (This means that unique maximum likelihood estimates do not exist.) You can see that the parameter estimates do not seem to converge if you specify both the ITPRINT and NOCHECK options in the MODEL statement. However, the exact analysis is still valid in this case, and exact tests and estimates for the conditional analysis are computed and displayed in Output 7.1.3.
Output 7.1.3: Stratified Output from EXACT Analysis
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This exact analysis should be compared to an asymptotic conditional likelihood analysis, which is available with the PHREG procedure. First, define a variable Z to be 1 if the response is an event and 2 if the response is a nonevent. This variable is used as the time variable as well as the censoring indicator (with 2 as the censored value) in the MODEL statement of PROC PHREG. Also specify the TIES=DISCRETE option to request the discrete logistic model, and the STRATA statement to specify the strata on which to condition:
proc phreg data=dose;
strata Center;
model Z*Z(2)=Dose / ties=discrete;
run;
For these data, the PHREG procedure does not converge and the maximum likelihood estimates are not valid. Generally, the conditional score statistics for testing the overall null hypothesis should be the same for both the asymptotic conditional analysis in PROC PHREG and the exact analysis in PROC LOGISTIC. However, PROC PHREG computes the p-value by comparing the value of the conditional score statistic to a chi-squared distribution, while PROC LOGISTIC derives its p-value from the exact conditional distribution. Also, inference on individual parameters is often not the same.
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 2000 by SAS Institute Inc., Cary, NC, USA. All rights reserved.