Learn R Programming

pim (version 2.0.2)

vcov.internal: Internal functions for vcov estimation

Description

These functions serve as preparation functions to calculute the variance- covariance matrix of a pim using any of the vcov.estimators provided in this package. The result of these preparation functions is used by the sandwich.estimator and score.estimator functions respectively.

Usage

U.sandwich(Zbeta, Z, Y, link, W = NULL)

U.score(Zbeta, Z, Y, link, W = NULL)

Arguments

Zbeta

fitted values

Z

design matrix

Y

pseudo responses

link

character vector with link function

W

vector with weights