Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gethats

Calculates the Leverages for a GLM through a C Routine


Description

Calculates the leverages of a GLM through a C routine. It is intended to be used only within brglm.fit.

Usage

gethats(nobs, nvars, x.t, XWXinv, ww)

Arguments

nobs

The number of observations, i.e. dim(X)[1].

nvars

The number of parameters, i.e. dim(X)[1], where X is the model matrix, excluding the columns that correspond to aliased parameters.

x.t

t(X).

XWXinv

The inverse of the Fisher information.

ww

The ‘working’ weights.

Value

A vector containing the diagonal elements of the hat matrix.

Author(s)

See Also


brglm

Bias Reduction in Binomial-Response Generalized Linear Models

v0.7.2
GPL (>= 2)
Authors
Ioannis Kosmidis [aut, cre] (<https://orcid.org/0000-0003-1556-0302>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.