Learn R Programming

factorH (version 0.5.0)

normality.datatable: Raw normality per subgroup (Shapiro–Wilk) across factor combinations

Description

Runs Shapiro–Wilk tests on the raw response within each subgroup for all non-empty combinations of RHS factors (main effects and interaction cells).

Usage

normality.datatable(formula, data, force_factors = TRUE)

Value

A data.frame with rows per subgroup/cell. Columns: Effect, factor columns, count, W, p.shapiro (4 decimals), OK.

Arguments

formula

A model formula y ~ A + B (+ C ...).

data

A data frame with the variables.

force_factors

Logical; if TRUE, coerces RHS predictors to factors.

See Also

plan.diagnostics

Examples

Run this code
if (FALSE) {
normality.datatable(liking ~ gender + condition + age_cat, data = mimicry)
}

Run the code above in your browser using DataLab