coef.hglm | R Documentation |
The function returns different types of coefficients for a model.
## S3 method for class 'hglm'
coef(object, type = c("unscaled", "scaled", "selected"), ...)
object |
an object inheriting from |
type |
Default value is |
... |
optional arguments currently ignored. |
The types "scaled"
and "unscaled"
refer to the coefficients
of the scaled/unscaled optimization problem. Type "selected"
refers
to the active coefficients in the model active_coefficients
.
a vector containing the unscaled, scaled or selected coefficients.
dat <- rhglm(1000, 1:3)
fit <- hglm(y ~ ., data = dat)
coef(fit)
coef(fit, type="scaled")
coef(fit, type="selected")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.