permutation_test: Permutation test

Description Usage Arguments Value Examples

View source: R/permutation_test_class.R

Description

A permutation test generates a "null" model by randomising the response (for regression models) or group labels (for classification models). This is repeated many times to generate a distribution of performance metrics for the null model. This distribution can then be compared to the performance of the true model. If there is overlap between the true and null model performances then the model is overfitted.

Usage

1
permutation_test(number_of_permutations = 50, factor_name, ...)

Arguments

number_of_permutations

(numeric, integer) The number of permutations. The default is 50.

factor_name

(character) The name of a sample-meta column to use.

...

Additional slots and values passed to struct_class.

Value

A permutation_test object.

Examples

1
I=permutation_test(factor_name='Species')

structToolbox documentation built on Nov. 8, 2020, 6:54 p.m.