get.latest.time: Create a dataset with the latest time point only

View source: R/prepare.functions.R

get.latest.timeR Documentation

Create a dataset with the latest time point only

Description

Takes the latest time point from each arm in each study within an mb.network object. Useful for network plots.

Usage

get.latest.time(network)

Arguments

network

An object of class "mb.network".

Value

A list containing:

  • a data frame in long format of responses at the latest time point in each arm of each study

  • a vector of studyIDs

  • a vector of treatment names

  • a vector of class names (if included in network)

  • a data frame of treatment -> class codings (if included in network)

Examples

# Using the alogliptin dataset
network <- mb.network(alog_pcfb)

# Generate a data frame with only the latest time point included in each study
get.latest.time(network)


MBNMAtime documentation built on Oct. 14, 2023, 5:08 p.m.