Learn R Programming

nlmixr2est (version 5.0.2)

Nonlinear Mixed Effects Models in Population PK/PD, Estimation Routines

Description

Fit and compare nonlinear mixed-effects models in differential equations with flexible dosing information commonly seen in pharmacokinetics and pharmacodynamics (Almquist, Leander, and Jirstrand 2015 ). Differential equation solving is by compiled C code provided in the 'rxode2' package (Wang, Hallow, and James 2015 ).

Copy Link

Version

Install

install.packages('nlmixr2est')

Monthly Downloads

1,651

Version

5.0.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Matthew Fidler

Last Published

November 28th, 2025

Functions in nlmixr2est (5.0.2)

.deparseDifferent

Identify Differences Between Standard and New Objects but used in rxUiDeparse
.collectWarn

Collect warnings and just warn once.
.nlmixrNlmeFun

A surrogate function for nlme to call for ode solving
.nlmixrNlmFunC

A surrogate function for nlm to call for ode solving
.nlmAdjustCov

Adjust covariance matrix based on scaling parameters
.nlmixrPreprocessLiteralFix

This literally fixes parameters in the model
.nlmixrNlsFunVal

Internal nls functions for minpack.lm
.nlmixrOptimFunC

A surrogate function for optim to call for ode solving
.nlmixrNlsFun

A surrogate function for nls to call for ode solving
.nlmFinalizeList

Finalizes output list
.nlmixr2objectNameAssign

Allows external methods (like those in nlmixr2) to assign object name
.nlmixr2estLastPredSimulationInfo

Get the least prediction simulation information for VPC
.nlmSetupEnv

Setup a nonlinear system for optimization
.nlmixr0preProcessCovariatesPresent

Preprocess Covariates needed (or other data items)
.nlmFreeEnv

Frees nlm environment
.preProcessZeroOmega

Preprocess the zero omegas
.preProcessDataUi

Preprocess the zero omegas
.nlmixr2FitUpdateParams

Update model to have final parameter estimates for piping and save orig data
.rxGetDVFTransform

Get the DV transformation
.saemDropMuRefFromModel

Drop mu referenced etas and covariates
.nlmixrNlsData

Returns the data currently setup to run nls
foceiControl

Control Options for FOCEi
getValidNlmixrCtl.agq

Get valid nlmixr control object
laplaceControl

Control options for the Laplace estimation method
.uiApplyMu2

This is an internal function for modifying the UI to apply mu2 referencing
.uiFinalizeMu2

This is an internal function for replacing the ui with original model and dropping artificial data in output
foControl

Control options for the FO estimation method
foceControl

Control options for the foce estimation method
lbfgsb3cControl

Control for lbfgsb3c estimation method in nlmixr2
n1qn1Control

Control for n1qn1 estimation method in nlmixr2
foceiFitCpp_

Fit/Evaluate FOCEi
getBaseSimModelFit

Method for getting simulation rxode2 classic models based on fits
foiControl

Control options foir the FOI estimation method
nlmixr2AugPredSolve

Augmented Prediction for nlmixr2 fit
nlminbControl

nlmixr2 nlminb defaults
nlmControl

nlmixr2 defaults controls for nlm
nlmixr2Est.agq

Generic for nlmixr2 estimation methods
nlmixr2CreateOutputFromUi

Create nlmixr output from the UI
nlmixr2Eval_

Create a gradient function based on gill numerical differences
newuoaControl

Control for newuoa estimation method in nlmixr2
nlmixr2AllEst

Show all the current estimation methods
nlmixr2Gill83

Get the optimal forward difference interval by Gill83 method
nlmixr2

nlmixr2 fits population PK and PKPD non-linear mixed effects models.
nlmixr2iovLogvarCv

Transform the estimated value to %CV for IOV
nlmixr2Hess

Calculate Hessian
nlmixr2fix

Try to fix a nlmixr2 fit
nlmixr2NlmeControl

Control Values for nlme Fit with extra options for nlmixr
nlmixr2Version

Display nlmixr2's version
nlmixrAddObjectiveFunctionDataFrame

Add objective function data frame to the current objective function
nlmixr2Print

Print x using the message facility
nlmixr2Validate

Validate nlmixr2
nlmixr2Logo

Messages the nlmixr2 logo...
nlmixr2Keywords

A list and description of the fields in the nlmxir2 object
nlmixrAddTiming

Manually add time to a nlmixr2 object
nmObjGet

Get an item from a nlmixr core object
nlmixrClone

Clone nlmixr environment
nlsControl

nlmixr2 defaults controls for nls
nlmixrCbind

nlmixrCbind
nmObjGetControl.agq

Get control object from fit
nlmixrWithTiming

Time a part of a nlmixr operation and add to nlmixr object
nlmixrUpdateObject

Update the nlmixr2 object with new fit information
nmGetDistributionSaemLines

This is a S3 method for getting the distribution lines for a base rxode2 saem problem
nmNearPD

C++ implementation of Matrix's nearPD
nmObjHandleControlObject.agqControl

Handle the control object
nmObjUiSetCompressed

Set if the nlmixr2 object will return a compressed ui
nmObjGetPredOnly

Get the pred-only model for a fit depending on the object type
nmObjGetFoceiControl.agq

Method for getting focei compatible control object from nlmixr object
nmObjGetEstimationModel

Get the estimation model for a fit object depending on the object type
nmObjGetData.addCwres

Get an item from a nlmixr2FitData object
nmObjHandleModelObject

Handle Model Object
nmObjGetRxSolve

Get an option for the estimation method
nmObjGetIpredModel

Get the ipred model for a fit object depending on the object type
nmSuppressMsg

Respect suppress messages for nlmixr2 C functions
nmsimplex

Nelder-Mead simplex search
optimControl

nlmixr2 optim defaults
preProcessHooks

Return a list of all pre-processing hooks
preProcessHooksAdd

This adds a pre-processing hook to nlmixr2est
ofv

Return the objective function
rxGetDistributionNlmeLines

This is a S3 method for getting the distribution lines for a base rxode2 nlme problem
setOfv

Set/get Objective function type for a nlmixr2 object
sqrtm

Return the square root of general square matrix A
tableControl

Output table/data.frame options
summary.saemFit

Print an SAEM model fit summary
residuals.nlmixr2FitData

Extract residuals from the FOCEI fit
rxGetDistributionNlsLines

This is a S3 method for getting the distribution lines for a base rxode2 nls problem
reexports

Objects exported from other packages
posthocControl

Control options for the posthoc estimation method
rmEta

Remove an eta from the model
rxGetDistributionFoceiLines

This is a S3 method for getting the distribution lines for a base rxode2 focei problem
setCov

Set the covariance type based on prior calculated covariances
print.saemFit

Print an SAEM model fit summary
vpcSimExpand

Expand a VPC simulation
uobyqaControl

Control for uobyqa estimation method in nlmixr2
saemControl

Control Options for SAEM
vpcSim

VPC simulation
preProcessHooksRm

Remove the hook from nlmixr2est
vpcNameDataCmts

Name the data and compartments
addTable

Add table information to nlmixr2 fit object without tables
addCwres

Add CWRES
assertNlmixrFit

Assert that this is a nlmixr2 fit object
cholSE

Generalized Cholesky Matrix Decomposition
assertNlmixrFitData

Assert that this is a nlmixr2 fit data object
boxCox

Cox Box, Yeo Johnson and inverse transformation
agqControl

Control options for the agq estimation method
bobyqaControl

Control for bobyqa estimation method in nlmixr2
.addPkgNlmixr2

Adds a package to the nlmixr2's $sessioninfo inside the fit
addNpde

NPDE calculation for nlmixr2
.augPredIpredModel

Augment Prediction for Ipred Model
.iniS3

Initialize S3 methods
.deparseFinal

Deparse finalize a control or related object into a language object
.agq

Get the adaptive Gauss-Hermite quadrature points and weights
.downgradeEtas

This downgrades the UI for any of the zero etas in the model
.foceiPreProcessData

This function process the data for use in focei
.nlmixrNlminbFunC

A surrogate function for nlminb to call for ode solving