View source: R/LlrCalibration.R
| calibrateLlr | R Documentation | 
calibrateLlr computes calibrated log likelihood ratio using the fitted null distribution
calibrateLlr(null, likelihoodApproximation, twoSided = FALSE, upper = TRUE)
| null | An object of class  | 
| likelihoodApproximation | Either a data frame containing normal, skew-normal, or custom parametric likelihood approximations, or a list of (adaptive) grid likelihood profiles. | 
| twoSided | Compute two-sided (TRUE) or one-sided (FALSE) p-value? | 
| upper | If one-sided: compute p-value for upper (TRUE) or lower (FALSE) bound? | 
The calibrated log likelihood ratio.
data(sccs)
negatives <- sccs[sccs$groundTruth == 0, ]
null <- fitNull(negatives$logRr, negatives$seLogRr)
positive <- sccs[sccs$groundTruth == 1, ]
calibrateLlr(null, positive)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.