carx
objectDetect all outliers of a carx
object.
outlier(object, outlier.prefix = "OI_", seed = NULL)
a carx
object.
the prefix used to construct variable name for indicator variables representing the detected outliers, default = "OI_".
the seed for randon number generator, default=NULL
.
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.