GLM.new | R Documentation |
This constructor function can be used to create an instance of a
parametric GLM with specific distribution family, returning a new object of
NormalGLM, ExpGLM, WeibullGLM or GammaGLM, depending on the value of
distr
.
GLM.new(distr, linkinv = identity, params = NA)
distr |
distribution family |
linkinv |
inverse link function, defaults to identity function |
params |
model parameters to use as default (optional) |
a new instance of a GLM-subclass
model <- GLM.new(distr = "normal")
# see examples of GLM-subclasses (e.g. NormalGLM) for how to use such models
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.