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.

268 Performing Nonlinear Regression Chapter 9<br />

Additional Examples<br />

Additional Examples<br />

This section provides several examples of the broad usefulness of the Nonlinear platform.<br />

Maximum Likelihood: Logistic Regression<br />

In this example, we show several variations of minimizing a loss function. The loss function is the negative<br />

of a log-likelihood function, thus producing maximum likelihood estimates.<br />

The Logistic w Loss.jmp data table in the Nonlinear Examples sample data folder has an example for<br />

fitting a logistic regression using a loss function. The Y column is the proportion of ones for equal-sized<br />

samples of x values. The Model Y column has the linear model, <strong>and</strong> the Loss column has the loss function.<br />

In this example, the loss function is the negative log-likelihood for each observation, or the negative log of<br />

the probability of getting the observed response.<br />

Run the model by following the steps below:<br />

1. Select Analyze ><strong>Modeling</strong> > Nonlinear.<br />

2. Assign Model Y to the X, Predictor Formula role.<br />

3. Assign Loss to the Loss role.<br />

4. Click OK.<br />

5. Click Go.<br />

The parameter estimates are shown in the Solution report. See Figure 9.18.<br />

Figure 9.18 Solution Report<br />

The Loss value in the Solution report is the negative log-likelihood evaluated at the parameter estimates.<br />

The same problem can be h<strong>and</strong>led differently by defining a model column formula that absorbs the logistic<br />

function. Also, define a loss function that uses the model to form the probability for a categorical response<br />

level. Model2 Y holds the model, <strong>and</strong> the loss function is Loss2.

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

Saved successfully!

Ooh no, something went wrong!