normCholTest: Test of normality of the dependent variable

View source: R/normCholTest.R

normCholTestR Documentation

Test of normality of the dependent variable

Description

The function conducts a test of normality of the depenedent variable based on residuals transformed using Cholesky decomposition of the inverse of the estimated variance-covariance matrix of the variable.

Usage

normCholTest(model, normTest)

Arguments

model

lmer object.

normTest

function which implements a normality test e.g. shapiro.test (takes a vector of the values of the variable as an argument and conducts a test of normality of the variable).

Value

testResults

output of the normTest function chosen by the user.

Author(s)

Tomasz Zadlo

Examples

library(lme4)
mod <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
normCholTest(mod, shapiro.test)

qape documentation built on Aug. 21, 2023, 5:07 p.m.

Related to normCholTest in qape...