adjust_pvalues {Counternull} | R Documentation |
Compute Fisher-Adjusted P-Values for Multiple Testing
Description
Adjusts p-values obtained from multiple comparisons. Computes Fisher-Adjusted P-Values utilizing randomization-based method (Lee et al., 2017).
Usage
adjust_pvalues(ls, bw = NULL)
Arguments
ls |
List of "null_rand" objects |
bw |
Histogram bin width (optional) |
Details
Argument "ls" must have a "null_rand" object for each p-value that needs to be adjusted.
Function plots joint p-value distribution.
Value
Vector with adjusted p-values
References
Examples
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))
[Package Counternull version 0.2.12 Index]