visualize_permutation_test.Rd
This function visualizes the results of a permutation test by plotting a histogram of the permutation test statistics. A red dotted line indicates the location of the original unpermuted test statistic.
visualize_permutation_test(
permutation_results,
original_stat,
stat_name,
plot_title,
bin_width = 0.1
)
A numeric vector of permutation test statistics.
A numeric value representing the original unpermuted test statistic.
A character string representing the name of the test statistic.
string for plot title
optional bin width for the histogram
A ggplot object showing the histogram of permutation test statistics with the original test statistic marked.