cluster_baskets {basket}R Documentation

Get the Cluster Members of MEM Models

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

cluster_baskets(x)

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


# 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)


[Package basket version 0.10.11 Index]