how to get the R^2 and p value from a bootstrap regression

조회 수: 1 (최근 30일)
Liyin
Liyin 2013년 5월 19일
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개)

카테고리

Help CenterFile Exchange에서 Linear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by