Leverage & Cook's distance

バージョン 2.0.0.0 (1.6 KB) 作成者: Joris Meurs
Function for calculating leverage and Cook's distance without the use of toolboxes
ダウンロード: 154
更新 2016/7/21

ライセンスの表示

File name: 'levcook.m'. Function for calculating Cook's distance
and leverage without using the Statistic Toolbox.
Formula for leverage:
h = 1/L + (x-mean(x)).^2./sum((x-mean(x)).^2)
Formula for Cook's distance:
D = (err./(RMSE*p)).*(h./((1-h).^2))
Three input parameters: 'x', 'y' and 'p'
Two output parameters: 'h' and 'D'

x: Vector of x-variables
y: Vector of y-variables
p: Number of regression parameters (Default = 2)
h: Leverage
D: Cook's distance

Additionally, plots for leverage and Cook's distance will be
generated.

Developed by Joris Meurs BASc (2016)

引用

Joris Meurs (2024). Leverage & Cook's distance (https://www.mathworks.com/matlabcentral/fileexchange/56810-leverage-cook-s-distance), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2014b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
2.0.0.0

- .m file added

1.0.0.0