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 个)

类别

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