Learn R Programming

pcnetmeta (version 2.1)

ci.plot: Plotting Treatment-Specific 95% Credible Intervals

Description

ci.plot generates a plot of 95% credible intervals (CIs) for the treatment-specific effect sizes.

Usage

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

Arguments

nma.obj
a list object obtained by function 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 nma.obj.

Examples

Run this code
data(smoke)
# increase n.iter to reach convergence
nma.out <- nma.ab(s.id, t.id, r, n, data = smoke,
  trtname = c("NC", "SH", "IC", "GC"), param= "AR",
  model = "het_cor", n.adapt = 1000, n.iter = 100)
ci.plot(nma.out)
ci.plot(nma.out, FALSE)

Run the code above in your browser using DataLab