View source: R/relative.array-class.R
rank.relative.array | R Documentation |
Ranks "relative.table"
objects generated by get.relative()
.
## S3 method for class 'relative.array'
rank(x, lower_better = TRUE, ...)
x |
An object on which to apply the rank method |
lower_better |
Indicates whether negative responses are better ( |
... |
Arguments to be passed to methods |
An object of class("mbnma.rank")
which is a list containing a summary data
frame, a matrix of rankings for each MCMC iteration, and a matrix of probabilities
that each agent has a particular rank, for each parameter that has been ranked.
# Using the triptans data
network <- mbnma.network(triptans)
# Rank selected predictions from an Emax dose-response MBNMA
emax <- mbnma.run(network, fun=demax(), method="random")
rels <- get.relative(emax)
rank <- rank(rels, lower_better=TRUE)
# Print and generate summary data frame for `mbnma.rank` object
summary(rank)
print(rank)
# Plot `mbnma.rank` object
plot(rank)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.