View source: R/adjust_pvalues.R
adjust_pvalues | R Documentation |
Adjusts p-values obtained from multiple comparisons. Computes Fisher-Adjusted P-Values utilizing randomization-based method (Lee et al., 2017).
adjust_pvalues(ls, bw = NULL)
ls |
List of "null_rand" objects |
bw |
Histogram bin width (optional) |
Argument "ls" must have a "null_rand" object for each p-value that needs to be adjusted.
Function plots joint p-value distribution.
Vector with adjusted p-values
y = sample_data$turn_angle
w = sample_data$w
n_one = create_null_rand(y, w, sample_matrix, test_stat = c("t"))
y = sample_data$turn_angle
w = sample_data$w
fun = function(x,y){
return(invisible(ks.test(x,y)$statistic))
}
n_two = create_null_rand(y, w, sample_matrix, fun = fun,
alternative = c("greater"))
adjust_pvalues(list(n_one,n_two))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.