Description Usage Arguments Details References See Also Examples
This function also estimates θ^\text{CACE}using the Bayesian hierarchcal model but can accommodate studies with incomplete compliance data. The necessary data structure and the likelihood function are presented Section 2.3, CACE for meta-analysis with incomplete compliance information.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | cace.meta.ic(
data,
param = c("CACE", "u1out", "v1out", "s1out", "b1out", "pic", "pin", "pia"),
prior.type = "default",
delta.n = TRUE,
delta.a = TRUE,
delta.u = TRUE,
delta.v = TRUE,
delta.s = TRUE,
delta.b = TRUE,
cor = TRUE,
digits = 3,
n.adapt = 1000,
n.iter = 1e+05,
n.burnin = floor(n.iter/2),
n.chains = 3,
n.thin = max(1, floor((n.iter - n.burnin)/1e+05)),
conv.diag = FALSE,
mcmc.samples = FALSE,
study.specific = FALSE
)
|
data |
a input dataset the same structure as the example data 'epidural_ic', containing multiple rows referring to multiple studies in a meta-analysis. |
param |
a character string vector indicating the parameters to be tracked and estimated.
By default the following parameters (see |
prior.type |
the default priors are used by the default assignment 'prior.type="default"'.
Like the function |
delta.n |
logical values indicating whether the
corresponding random effect is included in the model. The default model sets all of these arguments
to 'TRUE'. Note that ρ ( |
delta.a |
logical values indicating whether the
corresponding random effect is included in the model. The default model sets all of these arguments
to 'TRUE'. Note that ρ ( |
delta.u |
logical values indicating whether the
corresponding random effect is included in the model. The default model sets all of these arguments
to 'TRUE'. Note that ρ ( |
delta.v |
logical values indicating whether the
corresponding random effect is included in the model. The default model sets all of these arguments
to 'TRUE'. Note that ρ ( |
delta.s |
logical values indicating whether the
corresponding random effect is included in the model. The default model sets all of these arguments
to 'TRUE'. Note that ρ ( |
delta.b |
logical values indicating whether the
corresponding random effect is included in the model. The default model sets all of these arguments
to 'TRUE'. Note that ρ ( |
cor |
logical values indicating whether the
corresponding random effect is included in the model. The default model sets all of these arguments
to 'TRUE'. Note that ρ ( |
digits |
a positive integer specifying the digits after the decimal point for
the effect size estimates. The default is |
n.adapt |
the number of iterations for adaptation in Markov chain Monte Carlo (MCMC) algorithm;
it is used to maximize the sampling efficiency.
The default is 1,000. If a warning "adaptation incomplete" appears, users may increase
|
n.iter |
the number of iterations of each MCMC chain.
The default is |
n.burnin |
the number of iterations for burn-in period. The default is
the largest integer not greater than |
n.chains |
the number of MCMC chains. The default is |
n.thin |
a positive integer indicating thinning rate for MCMC chains, which is used to
avoid potential high auto-correlation and to save computer memory when |
conv.diag |
a logical value indicating whether to compute the Gelman and Rubin
convergence statistic (\hat{R}) of each parameter as a convergence diagnostic.
It is considered the chains are well mixed and have converged to the target distribution
if \hat{R} ≤ 1.1. The default is 'FALSE'. If 'TRUE', |
mcmc.samples |
a logical value indicating whether to save MCMC posterior samples
in the output object. The default is 'FALSE'. If 'TRUE', the output object list
includes each chain's MCMC samples for all parameters. They can be used in the function
|
study.specific |
a logical value indicating whether to calculate the study-specific
θ^{CACE}_i. If 'TRUE', the model will first check the logical status of arguments
|
Note that when compiling the JAGS
model, the warning 'adaptation incomplete' may
occasionally occur, indicating that the number of iterations for the adaptation process
is not sufficient. The default value of n.adapt
(the number of iterations for adaptation)
is 1,000. This is an initial sampling phase during which the samplers adapt their behavior
to maximize their efficiency (e.g., a Metropolis–Hastings random walk algorithm may change
its step size). The 'adaptation incomplete' warning indicates the MCMC algorithm may not
achieve maximum efficiency, but it generally has little impact on the posterior estimates
of the treatment effects. To avoid this warning, users may increase n.adapt
.
zhou2019bayesianBayesCACE \insertRefzhou2020softwareBayesCACE
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.