Package: nlmixr2lib 0.3.2.9000

Bill Denney

nlmixr2lib: A Model Library for 'nlmixr2'

A model library for 'nlmixr2'. The models include (and plan to include) pharmacokinetic, pharmacodynamic, and disease models used in pharmacometrics. Where applicable, references for each model are included in the meta-data for each individual model. The package also includes model composition and modification functions to make model updates easier.

Authors:Richard Hooijmaijers [aut], Matthew Fidler [aut], Bill Denney [aut, cre], Kiranmayi Vedantham [aut]

nlmixr2lib_0.3.2.9000.tar.gz
nlmixr2lib_0.3.2.9000.zip(r-4.7-any)nlmixr2lib_0.3.2.9000.zip(r-4.6-any)nlmixr2lib_0.3.2.9000.zip(r-4.5-any)
nlmixr2lib_0.3.2.9000.tgz(r-4.6-any)nlmixr2lib_0.3.2.9000.tgz(r-4.5-any)
nlmixr2lib_0.3.2.9000.tar.gz(r-4.7-any)nlmixr2lib_0.3.2.9000.tar.gz(r-4.6-any)
nlmixr2lib_0.3.2.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
nlmixr2lib/json (API)

# Install 'nlmixr2lib' in R:
install.packages('nlmixr2lib', repos = c('https://nlmixr2.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/nlmixr2/nlmixr2lib/issues

Pkgdown/docs site:https://nlmixr2.github.io

Datasets:
  • modeldb - Model library for nlmixr2

On CRAN:

Conda:

10.51 score 14 stars 4.0k scripts 637 downloads 82 exports 70 dependencies

Last updated from:f6c55c60f0. Checks:1 OK. Indexed: yes.

TargetResultTimeFilesSyslog
source / vignettesOK469

Exports:addBaseline1expaddBaselineConstaddBaselineExpaddBaselineLinaddBioavailabilityaddCmtPropaddDepotaddDirectLinaddDirToModelDbaddDuraddEffectCmtLinaddEtaaddFileToModelDbaddIndirectaddIndirectLinaddIniaddLagaddLogEstimatesaddPeriphaddRateaddResErraddSecondAbsorptionaddTransitaddWeibullAbsaddZeroOrderAbsassertCompartmentExistsassertCompartmentNameassertParameterValueassertRxUiassertRxUiEstimatedResidualsassertRxUiMixedOnlyassertRxUiMuRefOnlyassertRxUiNormalassertRxUiPopulationOnlyassertRxUiPredictionassertRxUiRandomOnIdOnlyassertRxUiSingleEndpointassertRxUiTransformNormalassertVariableNameblankCombinebsvToCvcamelCombinecheckModelConventionscheckNamingRegisterscombinePaste2convertAbsForceLongerDelayconvertAbsSequentialconvertEmaxconvertEmaxHillconvertKinR0convertLogLinconvertMMconvertQuadcreateMarkovModelcreateMarkovModelDatasetcreateMarkovTransitionMatrixcvToBsvdefaultCombinedotCombineexpitfakeCclogitMann2022EquilibratemodellibncaComparisonTablencaParamLabelpkTransPoels_2025_elranatamab_qsp_cauc_multiplierPoels_2025_elranatamab_qsp_eventsreadModelDbregister_lagStateremoveDepotremoveLinesAndInisremovePeriphremoveTransitremoveZeroOrderAbssearchReplacesearchReplaceHelpersetCombineTypesimMarkovsnakeCombineupdateOncologyXenograftSimeoni2004

Dependencies:armadillo4rbackportsBHcachemcheckmateclicpp11cpp4rcrayondata.tabledigestdparserevaluatefarverfastmapggplot2gluegtablehighrinlineisobandknitrL0Learnlabelinglatticelbfgsb3clifecyclelotrimagrittrMASSMatrixmemoiseminqamirain1qn1nanonextnlmenlmixr2datanlmixr2estnumDerivplyrPreciseSumsqs2R6RColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRcppTrustreshape2rexrlangrxode2rxode2lincmtrxode2llS7scalessitmoStanHeadersstringfishstringistringrsymenginesysvctrsviridisLitewithrxfunyaml

List of models
General | Specific Drugs | DDMoRe

Last update: 2026-09-09
Started: 2023-04-22

Canonical covariate columns

Last update: 2026-05-08
Started: 2026-05-08

Creating a model library
Model library conventions within nlmixr2lib | Compartment naming | Estimated parameter naming | Parameter naming | Multi-component clearance | Parent drug + metabolite parameters | Parameter transforms | Random effects | Covariate effects | Drug effects | Model files

Last update: 2026-05-04
Started: 2022-09-16

TMDD archetypes: full, QSS, and Michaelis-Menten approximations
Overview | Population and units | Source trace | Typical-value simulations | Single-dose profiles (100 mg SC) | Target and complex trajectories (1-cmt models) | Repeated SC dosing — drug-concentration difference across structures | Regime-convergence check | Assumptions and deviations

Last update: 2026-04-19
Started: 2026-04-19

Markov modeling
Create your dataset | Create your model | Fit the model | Simulate your data | Summarize the simulations

Last update: 2026-04-19
Started: 2026-01-26

PK_2cmt_mAb_Davda_2014
Model and source | Population | Source trace | Virtual cohort | Simulation | Replicate published figures | Figure 1 / 3 — typical IV vs SC profiles | VPC-style percentile bands | PKNCA validation | Comparison against published NCA | Assumptions and deviations

Last update: 2026-04-19
Started: 2026-04-18

Readme and manuals

Help Manual

Help pageTopics
Add baseline that decays exponential with timeaddBaseline1exp
Add an estimated baseline constantaddBaselineConst
Add baseline that decays exponential with timeaddBaselineExp
Add an estimated baseline linear constantaddBaselineLin
Add a property to a compartmentaddBioavailability addCmtProp addDur addIni addLag addRate
To convert from infusion/intravenous administration to first-order oral absorptionaddDepot
Add direct linear effect with baseline=0addDirectLin
Add a directory to the modeldbaddDirToModelDb addFileToModelDb
Add effect compartmentaddEffectCmtLin
Add random effects to a modeladdEta
Add an indirect response model to a PK modeladdIndirect
Add linear indirect response modeladdIndirectLin
Add log estimates to a modeladdLogEstimates
Add a peripheral compartment to a modeladdPeriph
Add residual error to a modeladdResErr
Add a second absorption path for double-absorption modelsaddSecondAbsorption
To add transit compartments to the modeladdTransit
Converts first order absorption model to Weibull absorption modeladdWeibullAbs
Convert a model to zero-order absorption (Monolix 'Tk0')addZeroOrderAbs
Check a model against nlmixr2lib conventionscheckModelConventions
Check the naming registers for structural defectscheckNamingRegisters
Combine two strings using a naming conventioncombinePaste2
Force the second absorption delay longer than the firstconvertAbsForceLongerDelay
Convert double absorption to sequential delaysconvertAbsSequential
Convert linear effect to Emax effectconvertEmax
Convert linear effect to Emax-Hill effectconvertEmaxHill
Convert a kin/kout indirect response model to R0 and koutconvertKinR0
Converts a linear effect to a log-linear effectconvertLogLin
Convert models from linear elimination to Michaelis-Menten eliminationconvertMM
Convert linear elimination to quadratic eliminationconvertQuad
Create a Markov model for `nlmixr2`createMarkovModel
Create a Markov model dataset for use in estimating Markov modelscreateMarkovModelDataset createMarkovModelDataset.data.frame createMarkovModelDataset.default
Create the parts of a Markov model for transitioning from a single statecreateMarkovModelFromSingleState
Create a Markov transition matrix with probabilities of transitioning between every statecreateMarkovTransitionMatrix
Convert coefficient of variation (percent) to between-subject variancebsvToCv cvToBsv
Default combine stringsblankCombine camelCombine defaultCombine dotCombine snakeCombine
Fake blank Cc for creating PD only modelsfakeCc
Pre-equilibrate the Mann 2022 respiratory-physiology statesMann2022Equilibrate
Model library for nlmixr2modeldb
Get the model from the model librarymodellib
Build a side-by-side NCA comparison table (simulated vs. reference)ncaComparisonTable
Map PKNCA parameter codes to friendly human-readable labelsncaParamLabel
Change the transformation type for PK modelspkTrans
Eq 37 cumulative-cytokine-exposure multiplierPoels_2025_elranatamab_qsp_cauc_multiplier
Build an event table for the Poels 2025 elranatamab QSP modelPoels_2025_elranatamab_qsp_events
Read a model from the nlmixr2 model databasereadModelDb
To convert from first order oral absorption to IV/IntravenousremoveDepot
Removes lines and inis from a modelremoveLinesAndInis
Remove a peripheral compartment from a modelremovePeriph
To remove transit compartments from the modelremoveTransit
Remove zero-order absorption from a modelremoveZeroOrderAbs
Search within a model to replace part of the modelsearchReplace searchReplaceHelper
Change the default combine type for the packagesetCombineType
Convert nlmixr2 simulations to Markov statessimMarkov
Simulate a Markov model broken down by IDsimMarkovId
Update an oncology xenograft model based on Simeoni 2004updateOncologyXenograftSimeoni2004