Learn R Programming

qape (version 2.1)

normCholTest: 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)

Value

testResults

output of the normTest function chosen by the user.

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).

Author

Tomasz Zadlo

Examples

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

Run the code above in your browser using DataLab