hglm_model | R Documentation |
Create a HGLM model object.
hglm_model(
x,
y,
family = gaussian(),
weights = NULL,
frame = NULL,
solver = "auto",
approx = FALSE
)
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. |
approx |
a logical; if |
No standardization prior to fitting the model takes place. If a x or y standardization is wanted, the user has to do this beforehand.
An object of class "hglm_model"
.
dat <- rhglm(100, c(1, 2, -3, 4, 5, -6))
x <- model.matrix(y ~ ., data = dat)
hglm_model(x, y = dat[["y"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.