Skip to contents

Compute D matrix contribution for a given cluster to robust score statistic for glm robust score tests.

Usage

D_matrix_contribution(indices, model_fits, yy, xx, family, link)

Arguments

indices

Indices of observations in cluster.

model_fits

The fitted glm under the null hypothesis.

yy

Vector of observed responses.

xx

Design matrix for model.

family

The model family for the fitted glm.

The link function utilized in the fitted glm.