| outliers | R Documentation |
This function is an interface to create a data frame defining
the type, observation and weight of outliers. The output is properly designed to
be used as input to other functions such as outliers.effects
and outliers.regressors.
outliers(type, ind, weight = NULL)
type |
a character vector. The types of outliers ("IO", "AO", "LS", "TC", "SLS"). |
ind |
a numeric vector. The observations at which each outlier takes effect. |
weight |
an optional numeric vector. The weights of the outliers. If |
A data frame.
outliers(c("AO", "LS"), c(10, 20))
outliers(c("AO", "LS"), c(10, 20), c(2.1, 3.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.