hglm_model {holiglm} | R Documentation |
Create a HGLM Model
Description
Create a HGLM model object.
Usage
hglm_model(
x,
y,
family = gaussian(),
weights = NULL,
frame = NULL,
solver = "auto"
)
Arguments
x |
a numeric matrix giving the design matrix. |
y |
a vector giving the response variables. |
family |
a description of the error distribution and link function to be used in the model. |
weights |
an optional vector of 'prior weights' to be used for the estimation. |
frame |
an optional model frame object. |
solver |
a character string giving the name of the solver to be used for the estimation. |
Details
No standardization prior to fitting the model takes place. If a x or y standardization is wanted, the user has to do this beforehand.
Value
An object of class "hglm_model"
.
Examples
dat <- rhglm(100, c(1, 2, -3, 4, 5, -6))
x <- model.matrix(y ~ ., data = dat)
hglm_model(x, y = dat[["y"]])
[Package holiglm version 1.0.0 Index]