| leverage | R Documentation |
Computes the leverage of each observation in the PC score (U) or IC mixing (M) matrix for projection scrubbing. Can threshold to flag potential outliers.
leverage(Comps, are_norm = FALSE, median_cutoff = NULL)
Comps |
The |
are_norm |
Assume the columns of |
median_cutoff |
The outlier cutoff, in multiples of the median leverage.
Default: |
A list with entries "meas" (the leverage values),
"cut" (the leverage cutoff value) and
"flag" (logical vector indicating the outliers). If
!is.null(median_cutoff), "cut" and "flag" are omitted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.