genplot: Beta-adjust Function

Description Usage Arguments Examples

Description

Given a set of minimum P-values under the different numbers of tests, returns p-values adjusted using the Beta correction that allows you to control the family wise error rates.

Usage

1
  b.adjust(p, ntests, fixParam = c(0, 0, 0))

Arguments

p

a vector of the minimum P-values

ntests

the numbers of tests for the set of P-values

fixParam

an indicator vector of 0 or 1 (length = 3)

Examples

1
2
3
p=NULL
for(i in 1:100){p = c(p, min(runif(i)))}
b.adjust(p, 1:100)

natsuhiko/genplot documentation built on May 1, 2021, 8:03 p.m.