The NLMIXED Procedure

Logistic-Normal Model with Binomial Data

(View the complete code for this example.)

This example analyzes the data from Beitler and Landis (1985), which represent results from a multi-center clinical trial investigating the effectiveness of two topical cream treatments (active drug, control) in curing an infection. For each of eight clinics, the number of trials and favorable cures are recorded for each treatment. The SAS data set is as follows.

data infection;
   input clinic t x n;
   datalines;
1 1 11 36
1 0 10 37
2 1 16 20
2 0 22 32
3 1 14 19
3 0  7 19
4 1  2 16
4 0  1 17
5 1  6 17
5 0  0 12
6 1  1 11
6 0  0 10
7 1  1  5
7 0  1  9
8 1  4  6
8 0  6  7
;

Suppose denotes the number of trials for the ith clinic and the jth treatment (), and denotes the corresponding number of favorable cures. Then a reasonable model for the preceding data is the following logistic model with random effects:

and

The notation indicates the jth treatment, and the are assumed to be iid .

The PROC NLMIXED statements to fit this model are as follows:

proc nlmixed data=infection;
   parms beta0=-1 beta1=1 s2u=2;
   eta    = beta0 + beta1*t + u;
   expeta = exp(eta);
   p      = expeta/(1+expeta);
   model x ~ binomial(n,p);
   random u ~ normal(0,s2u) subject=clinic;
   predict eta out=eta;
   estimate '1/beta1' 1/beta1;
run;

The PROC NLMIXED statement invokes the procedure, and the PARMS statement defines the parameters and their starting values. The next three statements define , and the MODEL statement defines the conditional distribution of to be binomial. The RANDOM statement defines u to be the random effect with subjects defined by the clinic variable.

The PREDICT statement constructs predictions for each observation in the input data set. For this example, predictions of and approximate standard errors of prediction are output to a data set named eta. These predictions include empirical Bayes estimates of the random effects .

The ESTIMATE statement requests an estimate of the reciprocal of .

The output for this model is as follows.

Figure 83.7: Model Information and Dimensions for Logistic-Normal Model

The NLMIXED Procedure

Specifications
Data SetWORK.INFECTION
Dependent Variablex
Distribution for Dependent VariableBinomial
Random Effectsu
Distribution for Random EffectsNormal
Subject Variableclinic
Optimization TechniqueDual Quasi-Newton
Integration MethodAdaptive Gaussian Quadrature

Dimensions
Observations Used16
Observations Not Used0
Total Observations16
Subjects8
Max Obs per Subject2
Parameters3
Quadrature Points5


The "Specifications" table provides basic information about the nonlinear mixed model (Figure 83.7). For example, the distribution of the response variable, conditional on normally distributed random effects, is binomial. The "Dimensions" table provides counts of various variables. You should check this table to make sure the data set and model have been entered properly. PROC NLMIXED selects five quadrature points to achieve the default accuracy in the likelihood calculations.

Figure 83.8: Starting Values of Parameter Estimates

Initial Parameters
beta0beta1s2uNegative
Log
Likelihood
-11237.5945925


The "Parameters" table lists the starting point of the optimization and the negative log likelihood at the starting values (Figure 83.8).

Figure 83.9: Iteration History and Fit Statistics for Logistic-Normal Model

Iteration History
IterationCallsNegative
Log
Likelihood
DifferenceMaximum
Gradient
Slope
1437.36226920.2323232.88208-19.3762
2637.14603750.2162320.92193-0.82852
3937.03009360.1159440.31590-0.59175
41137.02230170.0077920.019060-0.01615
51337.02224720.0000540.001743-0.00011
61637.02224666.57E-70.000091-1.28E-6
71937.02224665.38E-102.078E-6-1.1E-9

NOTE: GCONV convergence criterion satisfied.

Fit Statistics
-2 Log Likelihood74.0
AIC (smaller is better)80.0
AICC (smaller is better)82.0
BIC (smaller is better)80.3


The "Iteration History" table indicates successful convergence in seven iterations (Figure 83.9). The "Fit Statistics" table lists some useful statistics based on the maximized value of the log likelihood.

Figure 83.10: Parameter Estimates for Logistic-Normal Model

Parameter Estimates
ParameterEstimateStandard
Error
DFt ValuePr > |t|95% Confidence LimitsGradient
beta0-1.19740.55617-2.150.0683-2.51230.1175-3.1E-7
beta10.73850.300472.460.04360.028061.4488-2.08E-6
s2u1.95911.190371.650.1438-0.85554.7737-2.48E-7


The "Parameter Estimates" table indicates marginal significance of the two fixed-effects parameters (Figure 83.10). The positive value of the estimate of indicates that the treatment significantly increases the chance of a favorable cure.

Figure 83.11: Table of Additional Estimates

Additional Estimates
LabelEstimateStandard
Error
DFt ValuePr > |t|AlphaLowerUpper
1/beta11.35420.550972.460.04360.050.051462.6569


The "Additional Estimates" table displays results from the ESTIMATE statement (Figure 83.11). The estimate of equals and its standard error equals by the delta method (Billingsley 1986; Cox 1998). Note that this particular approximation produces a t-statistic identical to that for the estimate of . Not shown is the eta data set, which contains the original 16 observations and predictions of the .