permtest {zebu}R Documentation

Permutation test for local and global association measures

Description

Permutation test: statistical significance of local and global association measures

Usage

permtest(x, nb = 1000L, group = as.list(colnames(x$data$pp)), p_adjust = "BH")

Arguments

x

lassie S3 object.

nb

number of resampling iterations.

group

list of column names specifying which columns should be permuted together. This is useful for the multivariate case, for example, when there is many dependent variables and one independent variable. By default, permutes all columns separately.

p_adjust

multiple testing correction method. (see p.adjust.methods for a list of methods).

Value

permtest returns an S3 object of class lassie and permtest. Adds the following to the lassie object x:

See Also

lassie

Examples


# Calling lassie on cars dataset
las <- lassie(cars, continuous = colnames(cars))

# Permutation test using default settings
permtest(las, nb = 30) # keep resampling low for example


[Package zebu version 0.2.2.0 Index]