k_sample: k-sample permutation test for equality of distributions

Description Usage Arguments Value

View source: R/k_sample.R

Description

k-sample permutation test for equality of distributions

Usage

1
k_sample(x, group, strata = NULL, reps = 1000, stat = "oneway_anova")

Arguments

x

Vector of observations

group

Vector of group memberships, exchangeable under the null

strata

Vector of secondary group memberships (optional); if supplied, permutations will be done within strata

reps

Number of replications to approximate distribution (default 1000)

stat

Test statistic: either 'oneway_anova' (default) or 'twoway_anova'

Value

A vector of length 'reps' containing the permutation distribution


statlab/permuter documentation built on May 30, 2019, 9:45 a.m.