testvec_for_mm: Function to calculate the test vector for an 'merMod' object

View source: R/testvector_functions.R

testvec_for_mmR Documentation

Function to calculate the test vector for an merMod object

Description

Function to calculate the test vector for an merMod object

Usage

testvec_for_mm(mod, which = NULL, marginal = TRUE, VCOV = NULL,
  G = NULL, sig2 = NULL, efficient = TRUE)

Arguments

mod

merMod object

which

integer; if NULL, test vector is created for all coefficients, otherwise for the which'th coefficient

marginal

logical; whether to construct a test vector from the marginal or condition perspective

VCOV

covariance used for the construction of test vector

G

true random effect covariance

sig2

true error variance

efficient

logical; whether to compute the test vector corresponding to the efficient beta estimator in the marginal case

Details

Function provides 2 different marginal test vectors (efficient = TRUE / FALSE) and one conditional test vector

Note that the covariance of residuals R is assumed to be diagonal.


davidruegamer/selfmade documentation built on Feb. 2, 2023, 7:51 a.m.