rBetaH4: Generate realizations of beta alternative distributions
Description
These functions can be used to generate samples of
p-values all following a beta distribution (H4) or following
either uniform or beta distributions according to proportion
eta (H3).
Usage
rBetaH4(a, b = 1/w + a * (1 - 1/w), w = (1 - a)/(b - a), M = 2, N = 10)
rBetaH3(
a,
b = 1/w + a * (1 - 1/w),
w = (1 - a)/(b - a),
eta = 0.5,
M = 2,
N = 10
)
Value
An N by M matrix of simulated p-values.
Arguments
a
first beta parameter, numeric between 0 and infinity
b
second beta parameter, numeric between 0 and infinity
w
UMP parameter between 0 and 1
M
number of p-values per realization
N
number of realizations
eta
numeric between 0 and 1, proportion of non-null
tests per sample