coef.SLOPE | R Documentation |
This function returns coefficients from a model fit by SLOPE()
.
## S3 method for class 'SLOPE'
coef(object, alpha = NULL, exact = FALSE, simplify = TRUE, sigma, ...)
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 |
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.
Coefficients from the model.
predict.SLOPE()
, SLOPE()
Other SLOPE-methods:
deviance.SLOPE()
,
plot.SLOPE()
,
predict.SLOPE()
,
print.SLOPE()
,
score()
fit <- SLOPE(mtcars$mpg, mtcars$vs, path_length = 1)
coef(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.