Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/simu_fwer_emp.R
This function simulate family wise error rate or test type I error rate
1 | simu_fwer_emp(s, m, alphaVec, max.group = 5L)
|
s |
number of replication in a simulation |
m |
total number of hypothesis test |
alphaVec |
a vector of significance levels |
max.group |
maximum number of p-value groups to be used, minimum is 5 |
This function generate pvalues times form uniform(0, 1)
then applying
OPWeight method to obtain the Familly Wise Error Rate (FWER)
a matrix of fwer for different methods
Mohamad S. Hasan, mshasan@uga.edu
Hasan and Schliekelman (2017)
qvalue
prob_rank_givenEffect
weight_binary
weight_continuous
1 2 3 | simVal = 1 # in actual case use at least simVal = 1000
set.seed(123)
typeIerror_mat = sapply(simVal, simu_fwer_emp, m = 10000, alphaVec = .05)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.