R/outliers-data-frame.R

Defines functions outliers

Documented in outliers

# currently "outliers" is not used by the functions in the package,
# but it may be useful to define the input of some functions, 
# e.g. argument "mo" in functions "outliers.effects" and "outliers.regressors"

outliers <- function(type, ind, weight = NULL)
{
  if (is.null(weight))
    weight <- rep(1, length(type))

  m <- data.frame(type = factor(type, levels = c("IO", "AO", "LS", "TC", "SLS")), 
    ind = ind, coefhat = weight)

  #structure(m, class = "outliers")
  m
}

Try the tsoutliers package in your browser

Any scripts or data that you put into this service are public.

tsoutliers documentation built on May 29, 2024, 7:44 a.m.