lslx
residuals.lslx()
is an S3
interface for extracting residuals from a lslx
object.
# S3 method for lslx
residuals(object, selector, lambda, delta, ...)
A fitted lslx
object.
A character
to specify a selector for determining an optimal penalty level.
Its value can be any one in "aic"
, "aic3"
, "caic"
, "bic"
, "abic"
, "hbic"
,
or their robust counterparts "raic"
, "raic3"
, "rcaic"
, "rbic"
, "rabic"
, "rhbic"
if raw data is available.
A numeric
to specific a chosen optimal penalty level.
If the specified lambda
is not in lambda_grid
, a nearest legitimate value will be used.
A numeric
to specific a chosen optimal convexity level.
If the specified delta
is not in delta_grid
, a nearest legitimate value will be used.
Other arguments. For details, please see the $extracted_residual_mean()
and the $extracted_residual_cov()
methods in lslx
.