optk {itrimhoch} | R Documentation |
The two-step algorithm to calculate the best k value for the improved trimmed Hochberg method to ensure that the maximum type I error rate reaches alpha exactly when rho is arbitrary
Description
The two-step algorithm to calculate the best k value for the improved trimmed Hochberg method to ensure that the maximum type I error rate reaches alpha exactly when rho is arbitrary
Usage
optk(alpha, alphavec = c(alpha/2, alpha/2))
Arguments
alpha |
the significance level |
alphavec |
a numeric vector of two values representing the weighted significance levels assigned to the two hypotheses |
Value
the best k value k_opt
and the rho value that makes the type I error rate reaches the maximum value rho_opt
Author(s)
Jiangtao Gou
Fengqing Zhang
References
Gou, J., Chang, Y., Li, T., and Zhang, F. (2025). Improved trimmed weighted Hochberg procedures with two endpoints and sample size optimization. Technical Report.
Examples
optk(alpha = 0.025)
[Package itrimhoch version 1.0.0 Index]