Changelog
Source:NEWS.md
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, includinglinCmt().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 fromomega, and residual error fromadd(),prop(),add() + prop()orlnorm(), every draw made with R’s random number generator, soset.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 andpmx_ode_subject_eval()evaluates one at a theta and eta, giving its predictions (the doublespmx_ode_solve()gives) and residual variances, as an estimator needs. The same call is in C,zupmxode_subject_eval(), through the headerinst/include/zupmxode.h, re-entrant and allocation-free, for packages that link to zupmxode.pmx_ode_solve()reads NONMEM’sMDVwhen a table has noEVID: a record with no dose andMDV1 marks a time rather than being an observation.