Description Usage Arguments Details Value Author(s)
This function shares many features with expand.ev
in the mrgsolve package,
but offers additional features.
1 | expand_obs(..., indata, dense, units, duration, sampling.int, sampling.freq)
|
... |
passed to |
indata |
input data set |
dense |
Boolean; if |
units |
Character string specifying units in minutes, hours, days, weeks, or years. |
duration |
Numeric value specifying maximum length of simulations as specified in |
sampling.int |
Numeric value specifying width of sampling interval around dose times in |
sampling.freq |
Numeric value specifying sampling frequency for |
cmt |
Numeric value specifying compartment in which to dose; default is 1. |
For intensive sampling around dose times, the dense
option may be requested.
The user has control over the sampling frequency (times per hour),
as well as the width of the sampling window (time before/after dosing). expand_obs
calls the sample_window
function to generate the additional observations before
or after dose times.
The resulting dataset includes the number of days, as well as the time of
day for the observation, as calculated from the start of the simulated
Currently, the function assumes the dose variable is called DOSE
, and the
time variable is called TIME
.
A data frame ordered by subject, and then by time.
Ryan Kyle, ryan.kyle@mail.mcgill.ca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.