Last chance! 50% off unlimited learning
Sale ends in
Create template data sets for simulation
expand.idata(...)expand.ev(...)
passed to expand.grid
An ID column is added as seq(nrow(ans))
if not supplied by the user.
For expand.ev
, defaults also added include cmt = 1
,
time = 0
, evid = 1
. If total
is included,
then addl
is derived as total
- 1. If tinf
is included, then
an infusion rate is derived for row where tinf
is greater than
zero.
# NOT RUN {
idata <- expand.idata(CL = c(1,2,3), VC = c(10,20,30))
doses <- expand.ev(amt = c(300,100), ii = c(12,24), cmt = 1)
infusion <- expand.ev(amt = 100, tinf = 2)
# }
Run the code above in your browser using DataLab