outlier: S3 method to detect outlier of a 'carx' object

Description Usage Arguments Value See Also

View source: R/carx_outlier.R

Description

Detect all outliers of a carx object.

Usage

1
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.


carx documentation built on May 2, 2019, 3:43 a.m.

Related to outlier in carx...