Learn R Programming

MultiGroupSequential (version 1.1.0)

hommeld: Hommel procedure

Description

hommeld() implement the Hommel procedure with different alphas for different endpoints.

Usage

hommeld(pvalues, alpha, epsilon = 1e-10, precision = 10)

Value

List with element named decisions containing an index of rejected hypotheses.

Arguments

pvalues

Numeric vector of p-values from different endpoints.

alpha

Numeric vector of alpha values for the different endpoints. Vector must be same length as pvalues.

epsilon

Numeric scalar indicating the lower bound for alpha.

precision

Integer scalar of the desired number of digits to be used.

Author

Xiaodong Luo

Details

The package hommel can handle Hommel procedure with different alpha's for different endpoints, the function hommeld() is just a wrapper of hommel::hommel().

Examples

Run this code
hommeld(
  pvalues = runif(5),
  alpha = seq(0.01, 0.025, len = 5),
  epsilon = 1.0e-10,
  precision = 10
)

Run the code above in your browser using DataLab