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.weights(object, …)
object
: the default method
looks for component "weights"
and if not NULL
calls
napredict
on it.weights.glm