perm {mlf}R Documentation

Permutation Test

Description

Provides nonparametric statistical significance via sample randomization.

Usage

perm(x, y, func, reps)

Arguments

x, y

numeric vectors of data values

func

specify mlf function: (distcorr or mic).

reps

(optional) number of resamples. Defaults to 500.

Examples

# Sample data
a <- rnorm(25, 80, 35)
b <- rnorm(25, 100, 50)

mlf::mic(a, b)
mlf::perm(a, b, mic)

[Package mlf version 1.2.1 Index]