Sidak.p.adjust: The adjusted p-values for Sidak single-step FWER controlling...

Description Usage Arguments Value Author(s) See Also Examples

Description

The function for calculating the adjusted p-values based on original available p-values.

Usage

1
Sidak.p.adjust(p, 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.

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

See Also

p.adjust.

Examples

1
2
p <- c(pbinom(1,8,0.5),pbinom(1,5,0.75),pbinom(1,6,0.6))
Sidak.p.adjust(p)

Example output

[1] 0.10180432 0.04614639 0.11791555

MHTdiscrete documentation built on May 1, 2019, 10:23 p.m.