Function to generate a sequence variable for e.g. a crossover trial design
get_treatment_sequence.RdFunction to generate a sequence variable for e.g. a crossover trial design
Arguments
- data
dataset in pre-parse format, preferrably created using
create_nca_data(). Can also be a NONMEM-style dataset with EVID=0|1 column indicating PK an dosing data.- dictionary
abridged data dictionary for the input dataset, specified as list object. Requires at least entries for
subject_id,time,conc,dose. Optional entries are:visit,route, andduration.routeshould be a column in the dose data with the route of administration (e.g. "IV", "intravenous", "oral"); intravenous routes are mapped to PKNCA's "intravascular", all others to "extravascular".durationshould be a column with the dose duration (0 for bolus). Doses with an intravascular route and zero duration are treated as IV bolus (see Imputation below). If required entries are specified only partially, then default values (i.e. CDISC) nomenclature will be imputed for missing identifiers.- variable
variable name to base the sequence detection on
- groups
optional grouping variable, e.g.
ACTARM.