Filter löschen
Filter löschen

Logistic Regression S-Curve Fit

1 Ansicht (letzte 30 Tage)
Emily Doherty
Emily Doherty am 12 Apr. 2020
Beantwortet: Peng Li am 12 Apr. 2020
I have a N/Y (0/1) dependent variable and a continuous independent variable. I want to plot them with a S-curve logistic curve. I haven't been able to find any information on this. Can anyone help?

Antworten (1)

Peng Li
Peng Li am 12 Apr. 2020
Do you want to plot logit(y) against your predictor or you want to plot y against x? You could fit your y by x using fitglm with a logit link function and binomial distribution. Or use mnrfit directly. If you have the fitted outcome I think you should be able to plot either way you want.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by