Learn R Programming

pharmr (version 2.2.0)

add_administration: add_administration

Description

Add observations to an arm in a trial design

Usage

add_administration(td, arm, variable, amount, time_points, start_time = 0)

Value

(TrialDesign) An updated TrialDesign

Arguments

td

(TrialDesign) TrialDesign to add to

arm

(str) Name of the arm

variable

(str) Name of the dose variable (e.g. AMT)

amount

(numeric) The dose amount

time_points

(array(numeric)) List of the time points for the administration

start_time

(numeric) Set a start_time to offset the time_points. Default 0.0