Learn R Programming

pharmr (version 2.2.0)

add_observations: add_observations

Description

Add observations to an arm in a trial design

Usage

add_observations(td, arm, variable, 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 variable to observe

time_points

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

start_time

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