Learn R Programming

pcnetmeta (version 2.2.1)

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

Description

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

Usage

absolute.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
# increase n.adapt to enhance efficiency
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 = 0, n.iter = 100, n.chains = 1)
absolute.plot(nma.out)
absolute.plot(nma.out, FALSE)

Run the code above in your browser using DataLab