apR2p

Approximate determination coefficient (R2) for prediction.
1.0K 次下载
更新时间 2007/4/13

查看许可证

This m-file computes an approximate determination coefficient (R2) for prediction, say

R2pred = 1 - (PRESS/SST)

where PRESS = prediction error sum of squares, SST = total sum of squares.

This statistic gives some indication of the predictive capability of the regression model. So, we could expect the model 'explain' about a percentage of the variability in predicting new observations, as compared to the approximately percentage of the variability in the original data explained by the least squares fit.

Syntax: function x = apR2p(D)

Inputs:
D - matrix data (=[X Y]) (last column must be the Y-dependent variable; X-independent variables).

Output:
x - approximate determination coefficient (R2) for prediction.

引用格式

Antonio Trujillo-Ortiz (2024). apR2p (https://www.mathworks.com/matlabcentral/fileexchange/14619-apr2p), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 ANOVA 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

It was added an appropriate format to cite this file.