weights-actuaRE {actuaRE} | R Documentation |
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.
## S3 method for class 'cpglm'
weights(object, type = c("prior", "working"), ...)
## S3 method for class 'hierCredGLM'
weights(object, type = c("prior", "working"), ...)
## S3 method for class 'hierCredTweedie'
weights(object, type = c("prior", "working"), ...)
object |
an object for which the extraction of model weights is meaningful. Can be either |
type |
indicates if prior or working weights need to be extracted. |
... |
ignored |
Weights extracted from the object object
: the default method looks for component "weights" and if not NULL
calls napredict
on it.
weights
, cpglm
, glm
, hierCredibility
, hierCredGLM
or hierCredTweedie