Psirms {rPowerSampleSize} | R Documentation |
Computation of power for single step (Bonferroni) procedure.
Description
This function computes the power for an analysis of m
multiple
tests with a control of the q-gFWER by a Bonferroni procedure.
Usage
Psirms(r, m, p = m, nE, nCovernE = 1, delta, SigmaC, SigmaE,
alpha = 0.05, q = 1, asympt = FALSE,
maxpts = 25000, abseps = 0.001, releps = 0, nbcores = 1, LB = FALSE)
Arguments
r |
integer, r = 1, ..., m. Desired number of endpoints to be declared significant. |
m |
integer. Number of endpoints. |
p |
integer, p = 1, ..., m. Indicates the number of false null hypotheses. |
nE |
integer. Sample size for the experimental (test) group. |
nCovernE |
Ratio of |
delta |
vector of length |
SigmaC |
matrix giving the covariances between the |
SigmaE |
matrix giving the covariances between the |
alpha |
a value which corresponds to the chosen q-gFWER type-I control bound. |
q |
integer. Value of 'q' (q=1,...,m) in the q-gFWER of Romano et
al., which is the probability to make at least |
asympt |
logical. |
maxpts |
convergence parameter used in the |
abseps |
convergence parameter used in the |
releps |
relative error tolerance as double used in the
|
nbcores |
integer. Number of cores to use for parallel computations. |
LB |
logical. Should we use a load balancing parallel computation. |
Value
List with two components:
pow |
The computed power. |
error |
The total sum of the absolute estimated errors for each call
to the |
Note
Results can differ from one time to another because the results of the
function pmvt
are random. If this is the case, you should
consider increasing maxpts
and decreasing abseps
.
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. Submitted to 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.