plan.diagnostics: Plan-level diagnostics for ANOVA/rank-based workflows
Description
Runs all assumption checks in one call: raw normality per subgroup (Shapiro-Wilk),
residual normality per cell (from a full-factorial ANOVA on the specified factors),
Levene/Brown-Forsythe for the full plan (median by default), and count-balance
chi-square tests for all factor combinations. Prints a concise summary and returns
all detailed tables in a list.
$results: data.frames for normality_raw,
residuals_cellwise_normality, levene_full_plan, balance_chisq.
Arguments
formula
A model formula of the form y ~ A + B (+ C ...).
data
A data frame containing the variables in the model.
force_factors
Logical; if TRUE, coerces RHS predictors to factors.
Details
Requires helper functions defined in this package:
normality.datatable, residuals.cellwise.normality.datatable,
levene.plan.datatable, balance.chisq.datatable.
Levene's test uses car; if unavailable, the Levene block returns NA rows with a warning.