Calculates the leverages of a GLM through a C routine. It is intended to
be used only within brglm.fit.
gethats(nobs, nvars, x.t, XWXinv, ww)The number of observations, i.e. dim(X)[1].
The number of parameters, i.e. dim(X)[1], where
X is the model matrix, excluding the columns that correspond to
aliased parameters.
t(X).
The inverse of the Fisher information.
The ‘working’ weights.
A vector containing the diagonal elements of the hat matrix.