Learn R Programming

pcnetmeta (version 2.3)

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, digits = 2, width = 5, height,
              network.name)

Arguments

nma.obj
a list object obtained by function nma.ab.bin, 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.
digits
an integer indicating the number of decimal places to be used for the point estimates and 95% CIs. The default is 2.
width
a positive number indicating the plot width. The default is 5.
height
a positive number indicating the plot height. The default is the treatment number minus 1.
network.name
a character string indicating the network name to be used for the produced .pdf file name.

Examples

Run this code
data(smoke)
# increase n.iter to reach convergence
# increase n.adapt to enhance efficiency
set.seed(1234)
nma.out <- nma.ab.bin(s.id, t.id, r, n, data = smoke,
  trtname = c("NC", "SH", "IC", "GC"), param= "AR",
  model = "het_cor", n.adapt = 400, n.iter = 100, n.chains = 1)
absolute.plot(nma.out)
absolute.plot(nma.out, alphabetic = FALSE)

Run the code above in your browser using DataLab