doseFreq: Compute Dose Frequency for Longitudinal Analyses in Long...

Description Usage Arguments Value Author(s)

Description

This function produces tabular output which may be helpful for comparing dosing frequencies by individual in exploratory analyses.

Usage

1
2
doseFreq(dosedata, dosevar = "DOSE", timevar = "DAY", idvar = "ID",
  nmdata = FALSE)

Arguments

dosedata

A data frame, including individual-level data organized with a unique key for each subject (idvar), and a secondary key corresponding to observed time (timevar). Neither should be missing.

dosevar

A character string specifying the column containing dose amount information.

timevar

A character string specifying the column containing time information, assumed to be days since start of observation.

idvar

A unique, subject-level ID which may identify individual participants in the data set.

nmdata

Boolean; if TRUE, assume data are in NONMEM-like format, and subset to rows containing EVID==1.

Value

A data frame, in which rows correspond to unique values of idvar and columns correspond to qd, bid, tid, and qid dosing.

Author(s)

Ryan Kyle, ryan.kyle@mail.mcgill.ca


rpkyle/cscmisc documentation built on May 13, 2019, 12:06 p.m.