calibrateLlr
computes calibrated log likelihood ratio using the fitted null distribution
calibrateLlr(null, likelihoodApproximation, twoSided = FALSE, upper = TRUE)
An object of class null
created using the fitNull
function or an
object of class mcmcNull
created using the fitMcmcNull
function.
Either a data frame containing normal, skew-normal, or custom parametric likelihood approximations, or a list of (adaptive) grid likelihood profiles.
Compute two-sided (TRUE) or one-sided (FALSE) p-value?
If one-sided: compute p-value for upper (TRUE) or lower (FALSE) bound?
The calibrated log likelihood ratio.