rank.prob | R Documentation |
rank.prob
generates a plot for treatment rank probabilities.
rank.prob(nma.obj, cex.axis = 1, cex.lab = 1, median = FALSE)
nma.obj |
a list object obtained by function |
cex.axis |
a numeric value specifying the size of the tick label numbers/text. |
cex.lab |
a numeric value specifying the size of the axis label text. |
median |
a logical value indicating whether the rank probabilities are based on the marginal effect measures ( |
A plot of treatment rank probabilities 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.
None.
data("smoke") # increase n.iter to reach convergence set.seed(1234) nma.out <- nma.ab.bin(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, n.chains = 1) rank.prob(nma.out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.