normCholTest {qape} | R 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)
[Package qape version 2.1 Index]