Plot bias correction inference
plotBiasCorrectionInference(
bbcResult,
type = "raw",
ids = bbcResult$Id,
limits = c(-3, 3),
logScale = FALSE,
numericId = TRUE,
fileName = NULL
)
A (sequential) analysis object generated by the biasCorrectionInference()
function.
The type of plot. Must be one of c("corrected", "raw", "compare")
.
IDs of the periods/groups to plot result for; default is all IDs.
The limits on log RR for plotting.
Whether or not to show bias in log-RR; default FALSE (shown in RR).
Whether or not to treat Id
as a numeric variable; default: TRUE.
Name of the file where the plot should be saved, for example 'plot.png'. See the function ggplot2::ggsave in the ggplot2 package for supported file formats.
A ggplot
object. Use the ggplot2::ggsave function to save to file.
Plot empirical bias distributions learned from analyzing negative controls.
# Perform sequential analysis using Bayesian bias correction for this example:
data("ncLikelihoods")
data("ooiLikelihoods")
# NOT RUN
# bbcSequential = biasCorrectionInference(ooiLikelihoods, ncLikelihoodProfiles = ncLikelihoods)
# Plot it
# NOT RUN
# plotBiasCorrectionInference(bbcSequential, type = "corrected")