qscore_impl {crctStepdown}R Documentation

The quasi-score statistic for a generalised linear mixed model

Description

Generates the quasi-score statistic for a generalised linear mixed model

Usage

qscore_impl(resids, tr, xb, invS, family2, Z, weight = TRUE)

Arguments

resids

A numeric vector of generalised residuals

tr

A numeric vector of 1s (treatment group) and -1s (control group)

xb

A numeric vector of fitted linear predictors

invS

A matrix. If using the weighted statistic then it should be the inverse covariance matrix of the observations

family2

A string naming the link function

Z

A matrix with columns indicating cluster membership

weight

Logical value indicating whether to use the weighted statistic (TRUE) or the unweighted statistic (FALSE)

Value

A scalar value with the value of the statistic


[Package crctStepdown version 0.5.2 Index]