GLM | R Documentation |
This class specializes ParamRegrModel. It is the abstract base class for parametric generalized linear model objects with specific distribution family such as NormalGLM and handles the (inverse) link function.
gofreg::ParamRegrModel
-> GLM
new()
Initialize an object of class GLM.
GLM$new(linkinv = identity, params = NA)
linkinv
inverse link function, defaults to identity function
params
model parameters to use as default (optional)
a new instance of the class
mean_yx()
Evaluates the regression function or in other terms the expected value of Y given X=x.
GLM$mean_yx(x, params = private$params)
x
vector of covariates
params
model parameters to use, defaults to the fitted parameter values
value of the regression function
clone()
The objects of this class are cloneable with this method.
GLM$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.