14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 7 Performing Logistic Regression on Nominal <strong>and</strong> Ordinal Responses 199<br />

Introduction to Logistic Models<br />

Introduction to Logistic Models<br />

Logistic regression fits nominal Y responses to a linear model of X terms. To be more precise, it fits<br />

probabilities for the response levels using a logistic function. For two response levels, the function is:<br />

PY ( = r 1<br />

) = ( 1 + e – Xb<br />

) – 1<br />

where r 1 is the first response<br />

or equivalently:<br />

PY ( = r 1<br />

) <br />

log-----------------------<br />

<br />

PY ( = r 2<br />

) <br />

=<br />

Xb<br />

where r 1 <strong>and</strong> r 2 are the two responses<br />

For r nominal responses, where r > 2 , it fits r – 1 sets of linear model parameters of the following form:<br />

PY ( = j)<br />

log--------------------<br />

PY<br />

( = r)<br />

<br />

=<br />

Xb j<br />

The fitting principal of maximum likelihood means that the βs are chosen to maximize the joint probability<br />

attributed by the model to the responses that did occur. This fitting principal is equivalent to minimizing<br />

the negative log-likelihood (–LogLikelihood) as attributed by the model:<br />

n<br />

Loss = – logLikelihood = –log( Prob( ith row has the y j<br />

th response)<br />

)<br />

<br />

i = 1<br />

For example, consider an experiment that was performed on metal ingots prepared with different heating<br />

<strong>and</strong> soaking times. The ingots were then tested for readiness to roll. See Cox (1970). The Ingots.jmp data<br />

table in the Sample Data folder has the experimental results. The categorical variable called ready has values<br />

1 <strong>and</strong> 0 for readiness <strong>and</strong> not readiness to roll, respectively.<br />

The Fit Model platform fits the probability of the not readiness (0) response to a logistic cumulative<br />

distribution function applied to the linear model with regressors heat <strong>and</strong> soak:<br />

1<br />

Probability (not ready to roll) = ---------------------------------------------------------------<br />

–( β 0 + β 1 heat + β 2 soak)<br />

1 + e<br />

The parameters are estimated by minimizing the sum of the negative logs of the probabilities attributed to<br />

the observations by the model (maximum likelihood).<br />

To analyze this model, select Analyze > Fit Model. The ready variable is Y, the response, <strong>and</strong> heat <strong>and</strong> soak<br />

are the model effects. The count column is the Freq variable. When you click Run, iterative calculations<br />

take place. When the fitting process converges, the nominal or ordinal regression report appears. The<br />

following sections discuss the report layout <strong>and</strong> statistical tables, <strong>and</strong> show examples.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!