GLM.new: Create GLM object with specific distribution family
Description
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.
Usage
GLM.new(distr, linkinv = identity, params = NA)
Value
a new instance of a GLM-subclass
Arguments
distr
distribution family
linkinv
inverse link function, defaults to identity function