Learn R Programming

pharmr (version 2.2.0)

add_arm: add_arm

Description

Add an empty arm to a trial design

Usage

add_arm(td, name, size)

Value

(TrialDesign) An updated TrialDesign

Arguments

td

(TrialDesign) TrialDesign to add to

name

(str) Name of the arm

size

(numeric) Size of the arm (number of subjects)

Examples

Run this code
if (FALSE) {
td <- create_trial_design()
td <- add_arm(td, name="Placebo", size=100)
td
}

Run the code above in your browser using DataLab