Learn R Programming

⚠️There's a newer version (1.0.2) of this package.Take me there.

rPowerSampleSize (version 1.0.1)

Sample Size Computations Controlling the Type-II Generalized Family-Wise Error Rate

Description

The significance of mean difference tests in clinical trials is established if at least r null hypotheses are rejected among m that are simultaneously tested. This package enables one to compute necessary sample sizes for single-step (Bonferroni) and step-wise procedures (Holm and Hochberg). These three procedures control the q-generalized family-wise error rate (probability of making at least q false rejections). Sample size is computed (for these single-step and step-wise procedures) in a such a way that the r-power (probability of rejecting at least r false null hypotheses, i.e. at least r significant endpoints among m) is above some given threshold, in the context of tests of difference of means for two groups of continuous endpoints (variables). Various types of structure of correlation are considered. It is also possible to analyse data (i.e., actually test difference in means) when these are available. The case r equals 1 is treated in separate functions that were used in Lafaye de Micheaux et al. (2014) .

Copy Link

Version

Install

install.packages('rPowerSampleSize')

Monthly Downloads

149

Version

1.0.1

License

GPL (> 2)

Maintainer

P de Micheaux

Last Published

January 13th, 2016

Functions in rPowerSampleSize (1.0.1)

matrix.type.compute

Computation of matrix type
Psirmu

Computation of power for step-up (Hochberg) procedure.
montecarlo

Monte carlo computation of power.
complexity

Computation of the complexity of the numerical computations.
Psirms

Computation of power for single step (Bonferroni) procedure.
global.1m.ssc

Sample Size Computation Based on a Global Procedure in the Context of Multiple Continuous Endpoints
indiv.1m.ssc

Sample size computation with an individual testing procedure in the context of multiple continuous endpoints
data

Simulated data
bonferroni.1m.ssc

Sample Size Computation with Single Step Bonferroni Method in the Context of Multiple Continuous Endpoints.
Psirmd

Computation of power for step-down (Holm) procedure.
indiv.analysis

Data analysis using an individual testing procedure controlling the q-gFWER in the context of \(m\) multiple continuous endpoints
df.compute

Computation of degrees of freedom.
plot.rPower

Plot of an rPower object
indiv.rm.ssc

Sample size determination in the context of multiple continuous endpoints with a control of the q-gFWER, for a given value of r-power (generalized disjunctive power).
rPowerSampleSize-package

Sample Size Computation and Data Analysis in the context of multiple continuous endpoints in clinical trials.
indiv.1m.analysis

Data analysis with an individual testing procedure in the context of multiple continuous endpoints
global.1m.analysis

Data analysis with a global method in the context of multiple continuous endpoints