coef.SLOPE {SLOPE} | R Documentation |
Obtain coefficients
Description
This function returns coefficients from a model fit by SLOPE()
.
Usage
## S3 method for class 'SLOPE'
coef(object, alpha = NULL, exact = FALSE, simplify = TRUE, sigma, ...)
Arguments
object |
an object of class |
alpha |
penalty parameter for SLOPE models; if |
exact |
if |
simplify |
if |
sigma |
deprecated. Please use |
... |
arguments that are passed on to |
Details
If exact = FALSE
and alpha
is not in object
,
then the returned coefficients will be approximated by linear interpolation.
If coefficients from another type of penalty sequence
(with a different lambda
) are required, however,
please use SLOPE()
to refit the model.
Value
Coefficients from the model.
See Also
Other SLOPE-methods:
deviance.SLOPE()
,
plot.SLOPE()
,
predict.SLOPE()
,
print.SLOPE()
,
score()
Examples
fit <- SLOPE(mtcars$mpg, mtcars$vs, path_length = 1)
coef(fit)