Description Usage Arguments Value Usage notes Examples
Summarise patient exposure by dose
1 2 3 4 5 6 7 | patientSummary(
data,
dose = Dose,
tox = Toxicity,
toxLabels = NA,
doseGrid = NULL
)
|
data |
the mcmc tibble to be summarised |
dose |
the name of the column in |
tox |
the name of the column in |
toxLabels |
the names of the variables tahat will contain the incidence counts in the output dataset. See Usage notes below. |
doseGrid |
the values of |
a tibble containing one row for each value in doseGrid
and columns named: the value of dose
,
Treated
, Evaluable
, and one for each element in doseGrid
. See Usage notes
below.
tox
should take integer values from 0 to N, with 0 indicating no toxicity and values of 1 or more indicating
increasing values of toxicity.
If toxLabels
is NA
, default labelds are created dependent on the number of distinct values of
tox
found in data
. If there are one or two, labels are "None" and "DLT". If there are exactly three,
labels are "None", "SubDLT" and "DLT". If there are four or more, labels are "None, "Cat1", ..., "CatN".
doseGrid
can be used to ensure that all relevant doses appear in the output dataset, even those
with observed zero counts.
In the output dataset, Treated
counts the number of observations with non-missing values of dose
;
Evaluable
counts the number of observations with non-missing tox
; None
counts the
number of observations wuth tox
equal to 1, and the other count variables count the number of observations
with eachand one for each of the remaining values of tox
.
1 2 | data("oQuigleyPatientData")
patientSummary(oQuigleyPatientData, doseGrid=1:6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.