Extract the model weights
weights-actuaRE.Rd
weights
is a generic function which extracts fitting weights from objects returned by modeling functions.
Methods can make use of napredict
methods to compensate for the omission of missing values. The default methods does so.
Usage
# S3 method for cpglm
weights(object, type = c("prior", "working"), ...)
# S3 method for speedglm
weights(object, type = c("prior", "working"), ...)
# S3 method for hierCredGLM
weights(object, type = c("prior", "working"), ...)
# S3 method for hierCredTweedie
weights(object, type = c("prior", "working"), ...)
Arguments
- object
an object for which the extraction of model weights is meaningful. Can be either
cpglm
,speedglm
,hierCredibility
,hierCredGLM
orhierCredTweedie
- type
indicates if prior or working weights need to be extracted.
- ...
ignored
Value
Weights extracted from the object object
: the default method looks for component "weights" and if not NULL
calls napredict
on it.
See also
weights
, cpglm
, speedglm
, hierCredibility
, hierCredGLM
or hierCredTweedie