Learn R Programming

carx (version 0.7.1)

outlier: S3 method to detect outlier of a carx object

Description

Detect all outliers of a carx object.

Usage

outlier(object, outlier.prefix = "OI_", seed = NULL)

Arguments

object

a carx object.

outlier.prefix

the prefix used to construct variable name for indicator variables representing the detected outliers, default = "OI_".

seed

the seed for randon number generator, default=NULL.

Value

an updated carx object. If any outlier is detected, its index will be stored in the outlier.indices attribute of the return object, and prefix for variable name is stored in the outlier.prefix attribute. Note that if the original object is fitted through a formula interface, the formula will also be updated.

See Also

outlier.carx.