test_truncated_hochberg: Perform truncated Hochberg procedure

View source: R/multiplicity.R

test_truncated_hochbergR Documentation

Perform truncated Hochberg procedure

Description

Perform truncated Hochberg procedure

Usage

test_truncated_hochberg(pvals, truncation_gamma, overall_alpha)

Arguments

pvals

a vector of p-values to be adjusted for multiplicity

truncation_gamma

the truncation parameter between 0 and 1, with 0 being Bonferroni procedure and 1 corresponding to Hochberg procedure. A larger value yields a larger alpha reserved if one or more test fails

overall_alpha

the overall alpha level.

Value

a tibble including the outcome of each test as well as alpha reserved

Examples

test_truncated_hochberg(c(0.01, 0.026), 0.8, overall_alpha = 0.025)

zhuob/R4ClinicalTrial documentation built on Feb. 4, 2025, 1:15 a.m.