Logistic Regression S-Curve Fit
조회 수: 2 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
Peng Li
2020년 4월 12일
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.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!