View source: R/prepare.functions.R
get.closest.time | R Documentation |
Takes the closest time point from each arm in each study to a specified time (t) within an
mb.network
object. Useful for network plots or exploring standard NMA.
get.closest.time(network, t = stats::median(network$data.ab$time))
network |
An object of class |
t |
The time point at which |
A data frame in long format of responses at the closest time point to t in each arm of each study.
# Using the alogliptin dataset
network <- mb.network(alog_pcfb)
# Take a single follow-up time from each study...
# ...closest to 7
get.closest.time(network, t=7)
# ...closest to 20
get.closest.time(network, t=7)
# ...closest to the median follow-up across all studies
get.closest.time(network, t=26)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.