Learn R Programming

basket (version 0.10.11)

cluster_baskets: 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

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab