f_dose_ongoing_cpp {drugDemand} | R Documentation |
Dosing Date Imputation for Ongoing Patients
Description
Imputes the dosing dates after cutoff for ongoing patients with dosing records.
Usage
f_dose_ongoing_cpp(usubjid, V, C, D, model_ki, theta_ki, model_ti, theta_ti)
Arguments
usubjid |
The unique subject ID. |
V |
The last dosing visit date relative to randomization. |
C |
The cutoff date relative to randomization. |
D |
The discontinuation date relative to randomization. |
model_ki |
The model for the number of skipped visits between two consecutive drug dispensing visits. Options include "constant", "poisson", "zero-inflated poisson", and "negative binomial". |
theta_ki |
The model parameters for the number of skipped visits between two consecutive drug dispensing visits. |
model_ti |
The model for the gap time between two consecutive drug dispensing visits. Options include "least squares" and "least absolute deviations". |
theta_ti |
The model parameters for the gap time between two consecutive drug dispensing visits. |
Value
A data frame with two variables:
-
usubjid
: The unique subject ID. -
day
: The dosing visit date relative to randomization.
Author(s)
Kaifeng Lu, kaifenglu@gmail.com
Examples
set.seed(314)
f_dose_ongoing_cpp(
usubjid = "A001", V = 297, C = 329, D = 569,
model_ki = "zero-inflated poisson", theta_ki = c(0.4, 2.5),
model_ti = "least squares", theta_ti = c(21, 2.3))