Last data update: 2014.03.03

R: Computation of the complexity of the numerical computations.
complexityR Documentation

Computation of the complexity of the numerical computations.

Description

This function computes the complexity of our formulas.

Usage

complexity(method, exchangeable, r, p, display = TRUE)

Arguments

method

"Bonferroni", "Hochberg" or "Holm".

exchangeable

Logical indicating if we are in the exchangeable case or not.

r

integer, r = 1, ..., m. Desired number of endpoints to be declared significant.

p

integer, p = 1, ..., m. Indicates the number of false null hypotheses.

display

Logical. Should we display the complexity.

Value

Complexity of the formulas (i.e., number of individual probabilities computed using the function pmvt (or pmvnorm) in the non exchangeable case).

Author(s)

P. Lafaye de Micheaux, B. Liquet and J. Riou

References

Delorme P., Lafaye de Micheaux P., Liquet B., Riou, J. (2015). Type-II Generalized Family-Wise Error Rate Formulas with Application to Sample Size Determination. Statistics in Medicine. Romano J. and Shaikh A. (2006) Stepup Procedures For Control of Generalizations of the Familywise Error Rate. The Annals of Statistics, 34(4), 1850–1873.

Results