Skip to contents

Test Assumptions

Usage

test_assumptions(data, x, y, groups = NULL, alpha = 0.05, plots = FALSE)

Arguments

data

The dataset being analyzed

x

X variable

y

Y (response) variable

groups

Grouping variable, if applicable. Default = NULL

alpha

Alpha for p-value evaluations. Default = 0.05

plots

Choose whether to include diagnostic plots in the case that assumptions are not met. Default = T

Value

out

Examples

test_assumptions(ToothGrowth, supp, len, dose, alpha = 0.01)
#> [1] "Shapiro Test indicates normal distribution in the data"
#> [1] "Variance Test indicates equal variances in the data"
#>      Assumption          Decision
#> [1,] "Shapiro Normality" "Pass"  
#> [2,] "Levene Variance"   "Pass"