qscore_impl: The quasi-score statistic for a generalised linear mixed...

View source: R/RcppExports.R

qscore_implR 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


crctStepdown documentation built on Sept. 14, 2023, 5:06 p.m.