This function transforms the estimated RoBMA model into a
z-curve object that can be further summarized and plotted.
Only available for normal-normal models estimated using the spike-and-slab
algorithm (i.e., algorithm = "ss"
). See
Bartoš and Schimmack (2025)
and
vignette("ZCurveDiagnostics", package = "RoBMA")
for more detail.
Usage
as_zcurve(x, significance_level = stats::qnorm(0.975), max_samples = 1000)
Examples
if (FALSE) { # \dontrun{
# using the example data from Anderson et al. 2010 and fitting the default model
# (note that the model can take a while to fit)
fit <- RoBMA(r = Anderson2010$r, n = Anderson2010$n,
study_names = Anderson2010$labels, algorithm = "ss")
zcurve_fit <- as_zcurve(fit)
summary(zcurve_fit)
} # }