cluster_baskets: Get the Cluster Members of MEM Models

Description Usage Arguments Value Examples

View source: R/accessors.r

Description

Object returned by the 'mem_mcmc()' and 'mem_exact()' include information about the arms in the trials and the cluster composed of sets of similar arms. This function returns the name of each arm in a cluster.

Usage

1

Arguments

x

either an exchangeability model or basket object.

Value

A named list is returned where the name is the cluster name and each element of the list is comprise do a character vector of the baskets in each cluster.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Create an MEM analysis of the Vemurafenib trial data.
data(vemu_wide)

mem_analysis <- mem_exact(
  vemu_wide$responders,
  vemu_wide$evaluable,
  vemu_wide$baskets,
  cluster_analysis = TRUE
)

# Get the baskets in the clusters.
cluster_baskets(mem_analysis)

basket documentation built on Oct. 17, 2021, 1:07 a.m.