basket_pep: The Basketwise Posterior Exchangeability Probability Matrix

View source: R/accessors.r

basket_pepR Documentation

The Basketwise Posterior Exchangeability Probability Matrix

Description

MEM analyses include the posterior exchangeability probability (PEP) of included arms giving the probability that any two arms are exchangeable. This function returns the matrix of those probabilities.

Usage

basket_pep(x)

Arguments

x

either an exchangeability model or basket object.

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
)

# Get the PEP for baskets.
basket_pep(mem_analysis)


presagia-analytics/basket documentation built on July 26, 2023, 2:10 p.m.