Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

expand.idata

Create template data sets for simulation


Description

Create template data sets for simulation

Usage

expand.idata(...)

expand.ev(...)

ev_expand(...)

Arguments

...

passed to expand.grid

Details

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.

Examples

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)

mrgsolve

Simulate from ODE-Based Models

v0.11.1
GPL (>= 2)
Authors
Kyle T Baron [aut, cre] (<https://orcid.org/0000-0001-7252-5656>), Bill Gillespie [ctb], Charles Margossian [ctb], Devin Pastoor [ctb], Bill Denney [ctb] (<https://orcid.org/0000-0002-5759-428X>), Dilawar Singh [ctb], Felicien Le Louedec [ctb] (<https://orcid.org/0000-0003-3699-2729>), Timothy Waterhouse [ctb] (<https://orcid.org/0000-0002-0954-9660>), Metrum Research Group [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.