Description Usage Arguments Details Value Author(s) See Also
View source: R/cooksDistanceKspm.R
Computes the Cook's distance method for an object of class "kspm".
1 2 | ## S3 method for class 'kspm'
cooks.distance(model, ...)
|
model |
an model of class "kspm", usually, a result of a call to |
... |
furter arguments passed to or from other methods (currently unused). |
Cook's distance values (C_i) are computed as follows: C_i = (e_i^2 h_ii) / (hat(sigma^2) tr(H) (1-h_ii)^2) where e_i is the residual of subject i, h_ii is the i th diagonal element of Hat matrix H corresponding to the leverage associated with subject i and tr(H) is the trace of the Hat matrix H.
A vector containing Cook's distance values.
Catherine Schramm, Aurelie Labbe, Celia Greenwood
kspm for fitting model, residuals.kspm, rstandard.kspm, plot.kspm.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.