Description Usage Arguments Value Author(s) Source See Also Examples
Takes a meta_stan
object which is obtained by function meta_stan
and plot
a forestplot, showing individual estimates along with their 95 percent credible intervals,
resulting effect estimate and prediction interval.
1 2 3 4 5 6 7 8 9 |
x |
A |
labels |
Optional vector with labels for the studies (publication author/year). |
digits |
A numerical value specifying the number of significant digits to be shown. Default is 2. |
boxsize |
A numerical value specifying the box size. Default is 0.3. |
heterogeneity |
A logical value to include heterogeneity estimates (DEFAULT = TRUE) |
col |
A function specifying the colors. See |
... |
Further arguments passed to or from other methods. |
The return value is invisible NULL
.
Christian Roever and Burak Kuersad Guenhan
This function is based foresplot
function from foresplot
R package.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
data('dat.Crins2014', package = "MetaStan")
dat_long <- create_MetaStan_dat(dat = dat.Crins2014,
armVars = c(responders = "r", sampleSize = "n"))
bnhm.Crins <- meta_stan(data = dat_long, likelihood = "binomial",
mu_prior = c(0, 10), theta_prior = c(0, 100),
tau_prior = 0.5)
forest_plot(bnhm.Crins, xlab = "log-OR", labels = dat.Crins2014$publication)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.