derive_arm_names: Derive or Assign Arm Names

View source: R/SampleSize.R

derive_arm_namesR Documentation

Derive or Assign Arm Names

Description

This function checks if arm_names is provided. If arm_names is missing, it attempts to derive names from mu_list. If mu_list does not contain names, it assigns default names ("A1", "A2", etc.) to each arm. Informational messages are displayed if verbose is set to TRUE.

Usage

derive_arm_names(arm_names, mu_list, verbose = FALSE)

Arguments

arm_names

Optional vector of arm names.

mu_list

Named list of means per treatment arm, from which arm names may be derived.

verbose

Logical, if TRUE, displays messages about the derivation process.

Value

A vector of arm names.

Author(s)

Thomas Debray tdebray@fromdatatowisdom.com


SimTOST documentation built on April 3, 2025, 9:05 p.m.