SHASH_out {fMRIscrub} | R Documentation |
Robust outlier detection based on SHASH distribution
Description
A robust outlier detection based on modeling the data as coming from a SHASH distribution.
Usage
SHASH_out(x, maxit = 20, out_lim = 3, weight_init = NULL)
Arguments
x |
The numeric vector in which to detect outliers. |
maxit |
The maximum number of iterations. Default: |
out_lim |
SD threshold for outlier flagging. Default: |
weight_init |
Initial weights. Default: |
Value
A "SHASH_out"
object, i.e. a list with components
- out_idx
Indices of the detected outliers.
- x_norm
The normalized data.
- SHASH_coef
Coefficients for the SHASH-to-normal transformation.
- indx_iters
TRUE for the detected outliers for each itertation.
- last_iter
Last iteration number.
- converged
Logical indicating whether the convergence criteria was satisfied or not.
Examples
x <- rnorm(100) + (seq(100)/200)
x[77] <- 13
SHASH_out(x)
[Package fMRIscrub version 0.14.5 Index]