Skip to contents

zupmxode 0.0.0.9000

  • Initial CRAN submission.

  • pmx_ode_tier() reports and sets the tier a model runs on: native code generated by MIR, or MIR’s interpreter.

  • pmx_ode_model() compiles a model written in the subset of rxode2’s model language described in its documentation, including linCmt().

  • pmx_ode_events() builds a NONMEM-style event table of doses and observation times.

  • pmx_ode_solve() solves closed-form models (linCmt()) for one or more subjects, exactly, with time-varying covariates, resets and steady state.

  • pmx_ode_solve() solves models with no closed form, with LSODA (from the bundled liblsoda) or Dormand-Prince 5(4).

  • Linear models are solved exactly between events by the matrix exponential.

  • pmx_ode_method() reports and sets a model’s solver; pmx_ode_info() says what a model is, which solver it takes and why, its tier and how long it took to compile.

  • Subjects are solved in parallel with OpenMP; pmx_ode_threads() sets how many threads, one by default. Results are the same, bit for bit, at any thread count.

  • pmx_ode_tier() keeps a model’s compartments, outputs and solver when it makes the copy on another tier.

  • pmx_ode_sim() simulates a population: etas drawn from omega, and residual error from add(), prop(), add() + prop() or lnorm(), every draw made with R’s random number generator, so set.seed() makes a simulation reproducible at any thread count.

  • The README says what the package is, and a Performance and platforms article gives the benchmarks against rxode2 and mrgsolve and the tier each platform runs.

  • Running out of memory inside LSODA, or while MIR lowers a model, is an R error naming the allocation, not a crash or a “bug” report.

  • pmx_ode_subjects() prepares subjects once and pmx_ode_subject_eval() evaluates one at a theta and eta, giving its predictions (the doubles pmx_ode_solve() gives) and residual variances, as an estimator needs. The same call is in C, zupmxode_subject_eval(), through the header inst/include/zupmxode.h, re-entrant and allocation-free, for packages that link to zupmxode.

  • pmx_ode_solve() reads NONMEM’s MDV when a table has no EVID: a record with no dose and MDV 1 marks a time rather than being an observation.