One row per arm and cycle, giving the nominal time and the amount the arm was planned to receive there. The planned amount is read per cycle, so a protocol-prescribed escalation is part of the plan rather than a departure from it.
Arguments
- x
A dataset from
synpmx_pca(), or its trial summary.
Details
This is what every generated patient in the arm starts from.
pca_dose_rates() gives the three hazards that then move them off it:
reductions, interruptions and discontinuation. On a study with no dose
modifications those rates are zero and this schedule is what every patient
receives.
The grid stops at the last cycle min_arm_patients of the arm's patients
reached, so a treatment duration only one patient had cannot be generated.
Examples
data <- pmx_simulated_fixture(60)
roles <- pmx_roles(
id = "ID", time = "TIME", nominal_time = "NTIME", dv = "DV", amt = "AMT",
evid = "EVID", cmt = "CMT", dvid = "DVID", mdv = "MDV"
)
head(pca_dosing(synpmx_pca(data, roles, seed = 1)))
#> arm cycle time planned_amt
#> 1 all 1 0 100.0885
#> 2 all 2 12 100.0885