Confidence intervals, logistic regression
조회 수: 2 (최근 30일)
이전 댓글 표시
Deal all,
I am using logistic regression to fit my data. In the end I want a prevision with confidence intervals.
I am using the code that follows:
CVO = cvpartition(y2,'k',10);
C=zeros(96,3);
for i = 1:CVO.NumTestSets
trIdx = CVO.training(i);
teIdx = CVO.test(i);
mdl = fitglm(x1(trIdx, :),y2(trIdx, :),'linear','Distribution','binomial','Link','logit')
[score, yci] = predict(mdl,x1(teIdx, :));
C(teIdx)=score;
C(teIdx, 2)=yci(:,1);
C(teIdx, 3)=yci(:,2);
For each observation I obtain the probability and confidence intervals (95%) that are not simetric around the mean prevision. How are these confidence intervals determined by MatLabR2014a?
Thanks in advance.
Best,
Elizabeth Vieira
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!