Convenience wrapper for creating and plotting zplot diagnostics
from a fitted brma object.
Usage
# S3 method for class 'brma'
zplot(
object,
significance_level = stats::qnorm(0.975),
summary_max_samples = 10000,
...
)
# S3 method for class 'zplot_brma'
zplot(object, ...)Arguments
- object
a normal-outcome
brmaobject, or azplot_brmaobject.- significance_level
z-value threshold for significance. Defaults to
qnorm(0.975)(two-sided alpha = 0.05).- summary_max_samples
maximum number of posterior samples used for the EDR and missing-study summaries stored in the generated zplot object. This is separate from the plot-density
max_samplesargument accepted byplot.zplot_brma()through.... Defaults to 10000. UseInfto use all posterior samples.- ...
arguments passed to
plot.zplot_brma().
Details
When object already inherits from zplot_brma,
zplot() dispatches directly to plot.zplot_brma() without
recomputing stored summaries.
Examples
if (FALSE) { # \dontrun{
if (requireNamespace("metadat", quietly = TRUE)) {
data(dat.lehmann2018, package = "metadat")
fit <- bPET(yi = yi, vi = vi, data = dat.lehmann2018, measure = "SMD")
zplot(fit)
}
} # }