Learn R Programming

pcnetmeta (version 2.0)

ci.plot: Plot Credible Intervals with Medians

Description

ci.plot generates a plot of 95

Usage

ci.plot(nma.obj, alphabetic = TRUE)

Arguments

nma.obj
a list object obtained by nma.ab, nma.ab.cont, nma.ab.py, or
alphabetic
a logical value indicating whether to sort the CIs according to treatment names alphabetically. The default is TRUE. If FALSE, the CIs are plotted in the order of treatment IDs specified in nm

Examples

Run this code
## CI plot for network Lu and Ades 2006
data(smoke)
# increase n.iter to reach convergence of MCMC
nma.out <- nma.ab(smoke$sid, smoke$tid, smoke$r, smoke$n,
  model = "het_cor", trtname = c("No contact", "Self-help",
  "Individual counselling", "Group counselling"), param=c("AR"),
  n.adapt = 1000, n.iter = 100)
ci.plot(nma.out)
ci.plot(nma.out, FALSE)

Run the code above in your browser using DataLab