meta.or.smd | R Documentation |
Performs a Bayesian meta-analysis to synthesize standardized mean differences (SMDs) for a continuous outcome and odds ratios (ORs) for a binary outcome.
meta.or.smd(y1, sd1, n1, y0, sd0, n0, r1, m1, r0, m0, id.bin, data,
n.adapt = 1000, n.chains = 3, n.burnin = 5000, n.iter = 20000, n.thin = 2,
seed = 1234)
y1 |
a vector specifying the sample means in the treatment group for the continuous outcome. |
sd1 |
a vector specifying the sample standard deviations in the treatment group for the continuous outcome. |
n1 |
a vector specifying the sample sizes in the treatment group for the continuous outcome. |
y0 |
a vector specifying the sample means in the control group for the continuous outcome. |
sd0 |
a vector specifying the sample standard deviations in the control group for the continuous outcome. |
n0 |
a vector specifying the sample sizes in the control group for the continuous outcome. |
r1 |
a vector specifying the event counts in the treatment group for the binary outcome. |
m1 |
a vector specifying the sample sizes in the treatment group for the binary outcome. |
r0 |
a vector specifying the event counts in the control group for the binary outcome. |
m0 |
a vector specifying the sample sizes in the control group for the binary outcome. |
id.bin |
a vector indicating whether the outcome is binary (1) or continuous (0). |
data |
an optional data frame containing the meta-analysis dataset. If |
n.adapt |
the number of iterations for adaptation in the Markov chain Monte Carlo (MCMC) algorithm. The default is 1,000. This argument and the following |
n.chains |
the number of MCMC chains. The default is 3. |
n.burnin |
the number of iterations for burn-in period. The default is 5,000. |
n.iter |
the total number of iterations in each MCMC chain after the burn-in period. The default is 20,000. |
n.thin |
a positive integer specifying thinning rate. The default is 2. |
seed |
an integer for specifying the seed of the random number generation for reproducibility during the MCMC algorithm for performing the Bayesian meta-analysis model. |
The Bayesian meta-analysis model implemented by this function is detailed in Section 2.5 of Jing et al. (2023).
"This function returns a list of Bayesian estimates, including posterior medians and 95% credible intervals (comprising the 2.5% and 97.5% posterior quantiles) for the overall SMD (d
), the between-study standard deviation (tau
), and the individual studies' SMDs (theta
).
Yaqi Jing, Lifeng Lin
Jing Y, Murad MH, Lin L (2023). "A Bayesian model for combining standardized mean differences and odds ratios in the same meta-analysis." Journal of Biopharmaceutical Statistics, 33(2), 167–190. <\Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/10543406.2022.2105345")}>
data("dat.dep")
out <- meta.or.smd(y1, sd1, n1, y0, sd0, n0, r1, m1, r0, m0, id.bin, data = dat.dep)
out
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.