optk | 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
optk(alpha, alphavec = c(alpha/2, alpha/2))
alpha |
the significance level |
alphavec |
a numeric vector of two values representing the weighted significance levels assigned to the two hypotheses |
the best k value k_opt
and the rho value that makes the type I error rate reaches the maximum value rho_opt
Jiangtao Gou
Fengqing Zhang
Gou, J., Chang, Y., Li, T., and Zhang, F. (2025). Improved trimmed weighted Hochberg procedures with two endpoints and sample size optimization. Technical Report.
optk(alpha = 0.025)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.