coef.hglm {holiglm} | R Documentation |
Extract Model Coefficients
Description
The function returns different types of coefficients for a model.
Usage
## S3 method for class 'hglm'
coef(object, type = c("unscaled", "scaled", "selected"), ...)
Arguments
object |
an object inheriting from |
type |
Default value is |
... |
optional arguments currently ignored. |
Details
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
.
Value
a vector containing the unscaled, scaled or selected coefficients.
Examples
dat <- rhglm(1000, 1:3)
fit <- hglm(y ~ ., data = dat)
coef(fit)
coef(fit, type="scaled")
coef(fit, type="selected")
[Package holiglm version 1.0.0 Index]