outlier: S3 method to detect outlier of a carx object

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.


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.