Usage
getp_Qreg_dir(null, LR, qmax = 1)
Arguments
null
a vector of likelihood ratio under the null hypothesis. Generated from simulation
LR
the likelihood of the data
qmax
quantile of likelihood ratio vector. Most time put as 1, all the likelihood ratio vector under the null hypothesis will be used