cumrank {MBNMAtime} | R Documentation |
Plot cumulative ranking curves from MBNMA models
Description
Plot cumulative ranking curves from MBNMA models
Usage
cumrank(x, sucra = TRUE, ...)
Arguments
x |
An object of class |
sucra |
A logical object to indicate whether Surface Under Cumulative Ranking Curve (SUCRA) values should be calculated and returned as a data frame. Areas calculated using trapezoid approach. |
... |
Arguments to be sent to |
Value
Line plots showing the cumulative ranking probabilities for each agent/class for
the ranked dose response paramtere in x
. The object returned is a list which contains the plot
(an object of class(c("gg", "ggplot")
) and a data frame of SUCRA values
if sucra = TRUE
.
Examples
# Using the alogliptin data
network <- mb.network(alog_pcfb)
# Estimate rankings from an Emax dose-response MBNMA
emax <- mb.run(network, fun=temax())
ranks <- rank(emax, param=c("emax"))
# Plot cumulative rankings for both dose-response parameters simultaneously
# Note that SUCRA values are also returned
cumrank(ranks)
[Package MBNMAtime version 0.2.4 Index]