| coef.xplus | R Documentation |
Extract coefficients from an xplus model
## S3 method for class 'xplus'
coef(object, s = "lambda.min", ...)
object |
An |
s |
Penalty value name or numeric lambda. |
... |
Additional arguments. |
A sparse coefficient matrix.
summary.xplus(), print.xplus()
set.seed(1)
x <- matrix(rnorm(100 * 5), ncol = 5)
y <- c(rep(1, 20), rep(0, 80))
fit <- xplus(x, y, max_iter = 5)
coef(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.