PermutationTest: Run a permutation test

View source: R/PermutationTest.R

PermutationTestR Documentation

Run a permutation test

Description

Old R function from Biometry that performs a permutation test on a dataset, first split into two by the grouping variable because THAT'S the most efficient way to do this.

Usage

PermutationTest(group1dat, group2dat, num_permutations, test_type = "mean")

Arguments

group1dat

data from group 1

group2dat

data from group 2

num_permutations

the number of permutations required

test_type

the desired test statistic. defaults to mean.

Examples

out <- PermutationTest(group1dat=MaleData, group2dat=FemaleData, num_permutations=500, test_type="mean")

kwdoyle/kevtools documentation built on Jan. 4, 2023, 10:32 p.m.