Confidence intervals, logistic regression
1 回表示 (過去 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!