Cooksd: Difference between revisions
Jump to navigation
Jump to search
imported>Scott (Created page with "===Purpose=== ===Synopsis=== ===Description=== ====Inputs==== * '''model''' = ====Outputs==== ===See Also=== plotscores") |
imported>Benjamin mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Calculates Cooks Distance for samples in a regression model. | |||
===Synopsis=== | ===Synopsis=== | ||
:distances = plotscores(model) | |||
===Description=== | |||
Cooks distance measures how much the model would change if a given sample is left out. Specifically, Cooks distance is a metric of how much all of the fitted values change when the ith sample is removed. A larger distance value indicates a sample has a stronger influence on the fitted values. | |||
* Distance > 0.5: ith sample may be influential and may be worthy of further investigation. | |||
* Distance > 1: ith sample is quite likely to be influential. | |||
====Inputs==== | ====Inputs==== | ||
* '''model''' = | * '''model''' = A standard model structure. | ||
('''Note:''' Currently only PLS models are supported.) | |||
====Outputs==== | ====Outputs==== | ||
* '''distances''' = An m-by-1 vector of the calculated Cooks distances for each sample. | |||
===See Also=== | ===See Also=== | ||
[[plotscores]] | [[plotscores]], [[leverag]], [[figmerit]], [[pls]] |
Latest revision as of 12:30, 16 August 2017
Purpose
Calculates Cooks Distance for samples in a regression model.
Synopsis
- distances = plotscores(model)
Description
Cooks distance measures how much the model would change if a given sample is left out. Specifically, Cooks distance is a metric of how much all of the fitted values change when the ith sample is removed. A larger distance value indicates a sample has a stronger influence on the fitted values.
- Distance > 0.5: ith sample may be influential and may be worthy of further investigation.
- Distance > 1: ith sample is quite likely to be influential.
Inputs
- model = A standard model structure.
(Note: Currently only PLS models are supported.)
Outputs
- distances = An m-by-1 vector of the calculated Cooks distances for each sample.