gsidak.p.adjust: Adjusted P-Values for the Generalized Sidak Procedure...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/kFWER_adjP.R

Description

The function for computing the adjusted p-values based on original p-values and fold k.

Usage

1
gsidak.p.adjust(p, k, alpha, make.decision)

Arguments

p

numeric vector of p-values (possibly with NAs). Any other R is coerced by as.numeric. Same as in p.adjust.

k

number of allowed type 1 errors in k-FWER controls.

alpha

significant level used to compare with adjusted p-values to make decisions, the default value is 0.05.

make.decision

logical; if TRUE, then the output include the decision rules compared adjusted p-values with significant level α

Value

A numeric vector of the adjusted p-values (of the same length as p) if make.decision = FALSE, or a list including original p-values, adjusted p-values and decision rules if make.decision = TRUE.

Author(s)

Yalin Zhu

References

Guo, W., & Romano, J. (2007). A generalized Sidak-Holm procedure and control of generalized error rates under independence. Statistical Applications in Genetics and Molecular Biology, 6(1).

See Also

gbonf.p.adjust, p.adjust, Sidak.p.adjust.

Examples

1
2
p <- c(0.031,0.023,0.029,0.005,0.031,0.000,0.874,0.399,0.293,0.077)
gsidak.p.adjust(p, k=2)

allenzhuaz/MHTmult documentation built on Nov. 4, 2021, 6:49 a.m.