Skip to contents

This function calculates the functional depth and returns the outliers.

Usage

func_depth_outlier(
  data,
  times,
  threshold = "beta",
  perc = 0.01,
  B = 10,
  maxiter = 10
)

Arguments

data

A matrix where each row is an observation of a time series. Row names should be a unique ID.

times

A vector of length equal to the number of columns as data specifying the time points recorded at.

threshold

The choice of threshold calculation. One of c("beta", "bootstrap"). Default "beta".

perc

The percentile of the distribution to use. Default 0.01.

B

The number of bootstraps to use. If 0, distribution is fitted to empirical depths. Default 10.

maxiter

Maximum number of iterations for outlier detection. Default 10.

Value

A vector of outliers based on rownames.