how to get the R^2 and p value from a bootstrap regression
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I would like to know if there is a way to get the determine coefficient (R^2) from a bootstrap regression. My code is
x=[ -28.39 -27.17 -28.24 -26.82 -26.70 -26.79 -28.85 -27.30 -27.95 -26.82];
y=[-24.02688 -18.58011 -18.74281 -21.66164 -22.11734 -19.44145 -23.55539 -18.87512 -19.54543 -19.63348];
[bootstat,bootsam]=bootstrp(1000,@regress,x,y);
But I think the bootstat only returns the slope of the regression. How about others parameters? I really want to get the R^2 and p value. Are there comments or functions in matlab? Thanks~~
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!