The World Statistics Day celebration continues here in the Community. We all need reliable data for sound decision making. Do you have a data source that you trust most? Head over to Discussions to tell us about it.
Choose Language Hide Translation Bar
Highlighted
Level I

## logistic regression

hi all,
how can I obtain a logistic regression graph with 0/1 values and the sigma curve.

When I use Y by X, the data are not on line 0 and line 1 but "somewhere" between 0 and 1...

thanks
3 REPLIES 3
Highlighted
Super User

## Re: logistic regression

The 0/1 values are nominal in logistic regression, hence they are treated as two cases rather than numbers (you may use any label e.g. apples/oranges and get the same curve). In JMP the data in the logistic plot (Fit Y by X platform) seem to be randomly distributed within their area, i.e. all 0 below and all 1 above the sigmoid curve. The right Y-axis is not metric scale from 0-1 but indicates the total proportions of the two cases.

However, it may be possible to get the type of plot you want by using the Nonlinear platform, and defining the logistic equation manually or from the model library.
Highlighted
Level I

## Re: logistic regression

Hi, thank you for the answer.
today I really do need this kind of graph, but can someone tell me how to use the equation: p=1/(1+exp(-a-(bx))?
thank you
Highlighted
Super User

## Re: logistic regression

Use nonlinear platform. The table need three columns: X (independent cont. variable), Y (0/1 or probabilities between 0 and 1) , and a formula column predicting Y from X using e.g. your logistic equation.

Try the script below.

Article Labels

There are no labels assigned to this post.