alpha <- 0.025
p <- c(0.018, 0.01, 0.105, 0.006)
num_hyps <- length(p)
g <- bonferroni_holm(rep(1 / 4, 4))
weighting_strategy <- graph_generate_weights(g)
matrix_intersections <- weighting_strategy[, seq_len(num_hyps)]
matrix_weights <- weighting_strategy[, -seq_len(num_hyps)]
set.seed(1234)
adjust_weights_parametric(
matrix_weights = matrix_weights,
matrix_intersections = matrix_intersections,
test_corr = diag(4),
alpha = alpha,
test_groups = list(1:4)
)
alpha <- 0.025
p <- c(0.018, 0.01, 0.105, 0.006)
num_hyps <- length(p)
g <- bonferroni_holm(rep(1 / 4, 4))
weighting_strategy <- graph_generate_weights(g)
matrix_intersections <- weighting_strategy[, seq_len(num_hyps)]
matrix_weights <- weighting_strategy[, -seq_len(num_hyps)]
adjust_weights_simes(
matrix_weights = matrix_weights,
p = p,
test_groups = list(1:4)
)
Run the code above in your browser using DataLab