Example of Binary Fitted Line Plot

A medical researcher wants to know how the dosage level of a new medicine affects the presence of bacteria in adults. The researcher conducts an experiment with 30 patients and 6 dosage levels. For two weeks, the researcher gives one dosage level to 5 patients, another dosage level to another 5 patients, and so on. At the end of the two-week period, each patient is tested to determine whether any bacteria are detected.

Because the data include a binary response and one continuous predictor, the researcher uses a binary fitted line plot to determine whether the dosage of a medicine is related to the presence of bacteria.

  1. Open the sample data, BacteriaMedicine.MTW.
  2. Choose Stat > Regression > Binary Fitted Line Plot.
  3. From the drop-down list, select Response in event/trial format.
  4. In Event name, type No bacteria.
  5. In Number of events, enter 'No Bacteria'.
  6. In Number of trials, enter Trials.
  7. In Predictor, enter 'Dose (mg)'.
  8. Click Graphs. Under Residual Plots, select Four in one.
  9. Click OK in each dialog box.

Interpret the results

The p-value for the medicine dosage is less than the significance level of 0.05. These results indicate that the relationship between the dosage of medicine and the presence of bacteria is statistically significant. The binary fitted line plot shows that as the amount of dosage increases, the likelihood that no bacteria is present increases. Furthermore, the odds ratio indicates that for every 1 mg increase in the dosage level, the likelihood that no bacteria is present increases by approximately 38 times. The fitted line plot shows the model fits the data well and the residual plots do not show any problems with the model.


Link functionLogit
Rows used6

Response Information

VariableValueCountEvent Name
No BacteriaEvent18No bacteria

Regression Equation

P(No bacteria) = exp(-5.25 + 3.63 Dose (mg))/(1 + exp(-5.25 + 3.63 Dose (mg)))


TermCoefSE CoefVIF
Dose (mg)3.631.301.00

Odds Ratios for Continuous Predictors

Odds Ratio95% CI
Dose (mg)37.5511(2.9647, 475.6190)

Model Summary


Analysis of Variance

SourceDFAdj DevAdj MeanChi-SquareP-Value
  Dose (mg)122.705222.705222.710.000