| .leverage_limit | R Documentation |
Upper control limit for the ncomp-normalized Mahalanobis leverage
produced by .gh_distance, for an observation that was not
part of the calibration set. For a model with ncomp components fitted
on n calibration samples, the squared Mahalanobis distance of a new
observation has upper limit
\mjeqn\fracp(n+1)(n-1)n(n-p) F_\alpha; p,\, n-pp(n+1)(n-1)/(n(n-p)) F.
Dividing by p = ncomp (the leverage normalization) gives the limit
returned here. Unlike an in-sample limit, this grows as ncomp
approaches n, reflecting the wider spread expected of new samples.
.leverage_limit(n, ncomp, conf = 0.95)
n |
the number of calibration observations. |
ncomp |
the number of components. |
conf |
the confidence level of the limit (default |
A single numeric upper limit, or NA_real_ if it cannot be
computed (non-finite inputs, or ncomp not in 1:(n - 1)).
De Maesschalck, Roy, Delphine Jouan-Rimbaud, and Désiré L. Massart. "The mahalanobis distance." Chemometrics and intelligent laboratory systems 50.1 (2000): 1-18.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.