Learn R Programming

nlmixr (version 2.0.7)

Nonlinear Mixed Effects Models in Population PK/PD

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 'RxODE' package (Wang, Hallow, and James 2015 ).

Copy Link

Version

Install

install.packages('nlmixr')

Monthly Downloads

54

Version

2.0.7

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Wenping Wang

Last Published

March 27th, 2022

Functions in nlmixr (2.0.7)

Wang2007

Simulated Data Set for comparing objective functions
Oral_1CPT

Oral_1CPT -- 1 Compartment Model with Oral Absorption Simulated Data from ACOP 2016
VarCorr.nlmixrNlme

Return VarCorr for nlmixr nlme
addCovMultiple

Add multiple covariates to a given model, sequentially or all at once
Bolus_2CPTMM

2 Compartment Model with Michaelis-Menten Clearance
Bolus_2CPT

2 Compartment Model
Bolus_1CPTMM

1 Compartment Model w/ Michaelis-Menten Elimination
Bolus_1CPT

Bolus_1CPT -- 1 Compartment Model Simulated Data from ACOP 2016
Infusion_1CPT

Infusion_1CPT -- 1 Compartment Model Simulated Data from ACOP 2016
as.focei.dynmodel

Output nlmixr format for dynmodel
addCovariate

Add covariate expression to a function string
addCovVar

Adding covariate to a given variable in an nlmixr model expression
as.nlme

Return composite nlme/focei to nlme
backwardSearch

Backward covariate search
calc.2LL

Log-likelihood using Gaussian Quadrature
as.saem

Return composite saem/focei to saem
boxCox

Cox Box, Yeo Johnson and inverse transformation
foceiFit

FOCEi fit
bootstrapFit

Bootstrap nlmixr fit
foceiControl

Control Options for FOCEi
configsaem

Configure an SAEM model
as.dynmodel

Convert fit to classic dynmodel object
addTable

Add table information to nlmixr fit object without tables
focei.theta

Get the FOCEi theta specification for the model
addNpde

NPDE calculation for nlmixr
focei.eta

Get the FOCEi theta or eta specification for model.
ini

nlmixr ini block handling
calcCov

Calculate gnlmm variance-covariance matrix of fixed effects
addCwres

Add CWRES
cholSE

Generalized Cholesky Matrix Decomposition
as.focei

Convert fit to FOCEi style fit
bootdata

Bootstrap data
invgaussian

Inverse Guassian absorption model
instant.stan.extension

instant.stan.extension.
forwardSearch

Forward covariate search
foceiFitCpp_

Fit/Evaulate FOCEi
gen_saem_user_fn

Generate an SAEM model
bootplot

Produce trace-plot for fit if applicable
getOMEGA

Calculate gnlmm variance-covariance matrix of random effects
nlmixrUI.dynmodelfun

Return dynmodel variable translation function
nlmixrUI.dynmodelfun2

Return dynmodel variable translation function
dynmodelControl

Control Options for dynmodel
dynmodel.mcmc

Fit a non-population dynamic model using mcmc
model

nlmixr model block
.nmGetData

This gets the parsed data in the lower-level manner that nlmixr expects.
covarSearchAuto

Stepwise Covariate Model-selection (SCM) method
dynmodel

Fit a non-population dynamic model
frwd_selection

Forward covariate selection for nlme-base non-linear mixed effect models
makeHockeyStick

Creating Hockey-stick covariates
calc.COV

Covariance matrix by Fisher Information Matrix via linearization
gauss.quad

Sets nodes and weights of Gauss-Hermite quadrature
metabolite

Parent/Metabolite dataset
gof

Plot of a non-population dynamic model fit
gnlmm

Fit a generalized nonlinear mixed-effect model
initializeCovars

Initializing covariates before estimation
nlmixrData

Convert/Format the data appropriately for nlmixr
nlmixrBoundsParser

Functions to assist with setting initial conditions and boundaries
nlmixrSim

Simulate a nlmixr solved system
nlmeModList

Access the model list information for nlmixr's nlme user functions
nlmixrGill83

Get the optimal forward difference interval by Gill83 method
nlmixrUI.saem.cres

Get initial estimate for bres SAEM.
nlmixrUI.saem.distribution

Get SAEM distribution
nlme_ode

Fit nlme-based mixed-effect model using ODE implementation
nlmixrEval_

Create a gradient function based on gill numerical differences
nlmixrPrint

Print x using the message facility
nlme_gof

GOF plots for nlme-based mixed-effect models
nlme_lin_cmpt

Fit nlme-based linear compartment mixed-effect model using closed form solution
nlmixrUI.saem.fixed

Get parameters that are fixed for SAEM
lin_cmt

concentrations from a linear compartment model
nlmixrUI.saem.res.name

Get error names for SAEM
nlmixrUI.saem.init

Get saem initilization list
nlmixrUI.saem.rx1

Return RxODE model with predictions appended
performNorm

Perform normalization of the covariate
summary.dyn.mcmc

Print summary of a non-population dynamic model fit using mcmc
print.gnlmm.fit

Print a gnlmm fit
ofv

Return the objective function
makeDummies

Create categorical covariates
nlmixrAugPred

Augmented Prediction for nlmixr fit
summary.dyn.ID

Summary of a non-population dynamic model fit
summary.saemFit

Print an SAEM model fit summary
nlmixrHess

Calculate Hessian
nlmixr

nlmixr fits population PK and PKPD non-linear mixed effects models.
nlmixrBounds

Extract the nlmixr bound information from a function.
nlmixrPred

Predict a nlmixr solved system
nlmixrUI.focei.fixed

Get parameters that are fixed
nlmixrLogo

Messages the nlmixr logo...
nlmixrPosthoc

Get a posthoc estimate of x
nlmixrUI.focei.inits

Get the FOCEi initializations
plot.nlmixrFitData

Plot a nlmixr data object
nlmixr_fit

Fit a nlmixr model
nlmixrBounds.eta.names

Get ETA names
nlmixrfindLhs

Find the assignments in R expression
plot.saemFit

Plot an SAEM model fit
nmDocx

Create a run summary word document
nlmixrUI.saem.init.theta

Generate SAEM initial estimates for THETA.
nlmixrUI.saem.init.omega

SAEM's init$omega
pheno_sd

Single Dose Phenobarbitol PK/PD
print.saemFit

Print an SAEM model fit summary
print.nlmixrUI

Print UI function
plot.dyn.mcmc

Plot of a non-population dynamic model fit using mcmc
nlmixrDynmodelConvert

Converting nlmixr objects to dynmodel objects
nlmixrBounds.focei.upper.lower

Get upper/lower/names for THETAs
nmDataConvert

Convert data to RxODE format (depreciated)
nlmixrUI.nlme.specs

Create the nlme specs list for nlmixr nlme solving
residuals.nlmixrFitData

Extract residuals from the FOCEI fit
saem.fit

Fit an SAEM model
nlmixrUI.rxode.pred

Return RxODE model with predictions appended
nlmixrUI.saem.model.omega

Get the SAEM model Omega
nlmixrUI.theta.pars

Get the Parameter function with THETA/ETAs defined
nlmixrUI.saem.theta.name

Get THETA names for nlmixr's SAEM
nlmixrUI.saem.res.mod

Get the SAEM model$res.mod code
nlmixrUI.nlmefun

Create the nlme parameter transform function from the UI object.
vpc

Vpc function for nlmixr
vpc_nlmixr_nlme

Visual predictive check (VPC) for nlmixr nlme objects
nlmixrTest

nlmixTest function for testing
nlmixrEst

Generic for nlmixr estimation methods
nlmixrUI.nlme.var

Get the variance for the nlme fit process based on UI
nlmixrUI.saem.bres

Get initial estimate for bres SAEM.
nlmixrUI.saem.fit

Generate saem.fit user function.
nlmixrUI

Prepares the UI function and returns a list.
nlmixrUI.saem.log.eta

Get model$log.eta for SAEM
nlmixrValidate

Validate nlmixr
nlmixrUI.saem.ares

Get initial estimate for ares SAEM.
nlmixrUI.saem.eta.trans

Get the eta->eta.trans for SAEM
nlmixrVersion

Display nlmixr's version
nlmixrUI.saem.model

Generate SAEM model list
tableControl

Output table/data.frame options
nmLst

Create a large output based on a nlmixr fit
preconditionFit

Linearly re-parameterize the model to be less sensitive to rounding errors
removeCovMultiple

Removing multiple covariates
sqrtm

Return the square root of general square matrix A
reexports

Objects exported from other packages
preCondInv

Calculate the inverse preconditioning matrix
setOfv

Set/get Objective function type for a nlmixr object
theo_md

Multiple dose theophylline PK data
prediction

Prediction after a gnlmm fit
print.dyn.ID

Print a non-population dynamic model fit object
saemControl

Control Options for SAEM
theo_sd

Multiple dose theophylline PK data
removeCovVar

Remove covariate from function string
nmsimplex

Nelder-Mead simplex search
pump

Pump failure example dataset
bootplot.nlmixrFitCore

Produce trace-plot for fit if applicable
removeCovariate

Remove covariate expression from a function string
rats

Pregnant Rat Diet Experiment
vpc_saemFit

VPC for nlmixr saemFit objects
vpc_ui

VPC based on ui model
setCov

Set the covariance type based on prior calculated covariances
warfarin

Warfarin PK/PD data