Performs a one-way permutation ANOVA.

permutation_test_anova(df, group, vals, n = 1000, seed = 123, ci = 0.95)

Arguments

df

Data frame or tibble.

group

Factor variable.

vals

Numeric response variable.

n

Number of permutations.

seed

Random seed.

ci

Confidence level for null distribution (default 0.95).

Value

List with:

observed_statistic

Observed F-statistic.

permutations

Permuted F-statistics.

confidence

Confidence interval for null distribution.

p_value

Permutation p-value.