Learn R Programming

pcnetmeta (version 2.1)

rank.prob: Plotting Treatment Rank Probabilities

Description

rank.prob generates a plot for treatment rank probabilities.

Usage

rank.prob(nma.obj)

Arguments

nma.obj
a list object obtained by function nma.ab, nma.ab.cont, nma.ab.py, or

Details

A plot is generated. Each vertical bar represents probabilities of being different ranks for a specific treatment. A darker area indicates the probability of being a higher rank. The black area indicates the probability of being the best treatment.

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= "rank.prob",
  model = "het_cor", higher.better = TRUE, n.adapt = 1000, n.iter = 100)
rank.prob(nma.out)

Run the code above in your browser using DataLab