| 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,
intercept = TRUE,
scale = c("original", "normalized"),
sigma,
...
)
object |
an object of class |
alpha |
penalty parameter for SLOPE models; if |
exact |
if |
simplify |
if |
intercept |
whether to include the intercept in the output; only
applicable when |
scale |
whether to return the coefficients in the original scale or in the normalized scale. |
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 = 10)
coef(fit)
coef(fit, scale = "normalized")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.