as_zcurve | R Documentation |
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
\insertCitebartos2025zcurve;textualRoBMA and
vignette("ZCurveDiagnostics", package = "RoBMA")
for more detail.
as_zcurve(x, significance_level = stats::qnorm(0.975), max_samples = 1000)
x |
A RoBMA object |
significance_level |
Significance level used for computation of z-curve estimates. |
max_samples |
Maximum number of samples from the posterior distribution that will be used for estimating z-curve estimates. |
as_zcurve
returns a list of tables of class 'zcurve_RoBMA'.
## Not run:
# 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.