normality_test: Checks normality of error terms by using Shapiro Wilk's test...

View source: R/normality_test.R

normality_testR Documentation

Checks normality of error terms by using Shapiro Wilk's test on each groups' residuals

Description

Checks normality of error terms by using Shapiro Wilk's test on each groups' residuals

Usage

normality_test(
  data,
  alpha = 0.05,
  groups = "Comparison",
  bonferroni_correct = FALSE,
  conservative = TRUE
)

Arguments

data

A data table or data frame of type LFDT grouped according to groups

alpha

The base significance level of the test.

groups

The names of grouping columns in data

bonferroni_correct

Should we Bonferroni correct the significance level based the number of MS comparisons. Default is TRUE

conservative

Should the Bonferroni correction be done conservatively that assumes that some of the MS comparisons are dependent? Default is TRUE

Value

A data table with grouping as the first column, LM test statistic as the second column, p-value as the third column, and judgement as the last column

Examples

print(1)

pernille267/commutability.selectivity documentation built on July 20, 2022, 9:11 a.m.