permutation_plot: Permutation Best Scores Plot

View source: R/permutation_plot.R

permutation_plotR Documentation

Permutation Best Scores Plot

Description

Plot the Empirical Null Distribution of Permutation Best Scores returned from CaDrA function

Usage

permutation_plot(perm_res)

Arguments

perm_res

a list of objects returned from CaDrA function. The returning object contains a list of key parameters that are used to run the permutation-based testing, a vector of permuted best scores for a given n_perm, an observed best score, and a computed permutation p-value.

Value

a density plot

Examples


# Load pre-computed permutation results
data(perm_res)

# Plot the permutation results
permutation_plot(perm_res)


montilab/CaDrA documentation built on Aug. 22, 2024, 11:55 p.m.