qscore_impl | R Documentation |
Generates the quasi-score statistic for a generalised linear mixed model
qscore_impl(resids, tr, xb, invS, family2, Z, weight = TRUE)
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) |
A scalar value with the value of the statistic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.