Learn R Programming

⚠️There's a newer version (2.0.7) of this package.Take me there.

nlmixr (version 2.0.4)

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

78

Version

2.0.4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Wenping Wang

Last Published

April 17th, 2021

Functions in nlmixr (2.0.4)

Infusion_1CPT

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

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

Oral_1CPT -- 1 Compartment Model with Oral Absorption Simulated Data from ACOP 2016
Wang2007

Simulated Data Set for comparing objective functions
Bolus_2CPTMM

2 Compartment Model with Michaelis-Menten Clearance
addCovVar

Adding covariate to a given variable in an nlmixr model expression
VarCorr.nlmixrNlme

Return VarCorr for nlmixr nlme
Bolus_2CPT

2 Compartment Model
Bolus_1CPT

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

1 Compartment Model w/ Michaelis-Menten Elimination
addCovariate

Add covariate expression to a function string
as.focei.dynmodel

Output nlmixr format for dynmodel
as.focei

Convert fit to FOCEi style fit
cholSE

Generalized Cholesky Matrix Decomposition
as.dynmodel

Convert fit to classic dynmodel object
calcCov

Calculate gnlmm variance-covariance matrix of fixed effects
calc.2LL

Log-likelihood using Gaussian Quadrature
as.saem

Return composite saem/focei to saem
backwardSearch

Backward covariate search
calc.COV

Covariance matrix by Fisher Information Matrix via linearization
bootplot

Produce trace-plot for fit if applicable
bootdata

Bootstrap data
addNpde

NPDE calculation for nlmixr
bootstrapFit

Bootstrap nlmixr fit
as.nlme

Return composite nlme/focei to nlme
boxCox

Cox Box, Yeo Johnson and inverse transformation
foceiFit

FOCEi fit
foceiControl

Control Options for FOCEi
addCwres

Add CWRES
covarSearchAuto

Stepwise Covariate Model-selection (SCM) method
configsaem

Configure an SAEM model
.nmGetData

This gets the parsed data in the lower-level manner that nlmixr expects.
instant.stan.extension

instant.stan.extension.
dynmodel

Fit a non-population dynamic model
addTable

Add table information to nlmixr fit object without tables
dynmodel.mcmc

Fit a non-population dynamic model using mcmc
invgaussian

Inverse Guassian absorption model
dynmodelControl

Control Options for dynmodel
forwardSearch

Forward covariate search
focei.eta

Get the FOCEi theta or eta specification for model.
foceiFitCpp_

Fit/Evaulate FOCEi
gen_saem_user_fn

Generate an SAEM model
makeDummies

Create categorical covariates
lin_cmt

concentrations from a linear compartment model
nlmixrGill83

Get the optimal forward difference interval by Gill83 method
frwd_selection

Forward covariate selection for nlme-base non-linear mixed effect models
nlmixrBounds.eta.names

Get ETA names
nlmixrBounds.focei.upper.lower

Get upper/lower/names for THETAs
initializeCovars

Initializing covariates before estimation
ini

nlmixr ini block handling
gauss.quad

Sets nodes and weights of Gauss-Hermite quadrature
nlme_gof

GOF plots for nlme-based mixed-effect models
makeHockeyStick

Creating Hockey-stick covariates
nlmixrUI

Prepares the UI function and returns a list.
nlmixrTest

nlmixTest function for testing
focei.theta

Get the FOCEi theta specification for the model
gof

Plot of a non-population dynamic model fit
nlmixrSim

Simulate a nlmixr solved system
nlmixr

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

Fit a generalized nonlinear mixed-effect model
nlme_ode

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

Print x using the message facility
nlmixrAugPred

Augmented Prediction for nlmixr fit
nlmixrHess

Calculate Hessian
nlmixrBounds

Extract the nlmixr bound information from a function.
nlme_lin_cmpt

Fit nlme-based linear compartment mixed-effect model using closed form solution
nlmixrEval_

Create a gradient function based on gill numerical differences
nlmixrUI.saem.bres

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

Generate saem.fit user function.
nlmixrValidate

Validate nlmixr
nlmixrUI.saem.eta.trans

Get the eta->eta.trans for SAEM
nlmixrUI.saem.ares

Get initial estimate for ares SAEM.
nlmixrUI.focei.inits

Get the FOCEi initializations
nlmixrUI.dynmodelfun2

Return dynmodel variable translation function
nlmixrUI.dynmodelfun

Return dynmodel variable translation function
nlmixrUI.focei.fixed

Get parameters that are fixed
nlmixrUI.saem.init.omega

SAEM's init$omega
getOMEGA

Calculate gnlmm variance-covariance matrix of random effects
nlmixrUI.saem.init.theta

Generate SAEM initial estimates for THETA.
metabolite

Parent/Metabolite dataset
nlmeModList

Access the model list information for nlmixr's nlme user functions
nlmixrUI.saem.distribution

Get SAEM distribution
nlmixrBoundsParser

Functions to assist with setting initial conditions and boundaries
nlmixrUI.saem.cres

Get initial estimate for bres SAEM.
model

nlmixr model block
nlmixrUI.nlme.specs

Create the nlme specs list for nlmixr nlme solving
nlmixrData

Convert/Format the data appropriately for nlmixr
nlmixrLogo

Messages the nlmixr logo...
setOfv

Set/get Objective function type for a nlmixr object
nlmixrUI.nlme.var

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

Get saem initilization list
nmDocx

Create a run summary word document
nlmixrUI.saem.fixed

Get parameters that are fixed for SAEM
nlmixr_fit

Fit a nlmixr model
nmDataConvert

Convert data to RxODE format (depreciated)
nmLst

Create a large output based on a nlmixr fit
sqrtm

Return the square root of general square matrix A
vpc_ui

VPC based on ui model
vpc_saemFit

VPC for nlmixr saemFit objects
nlmixrfindLhs

Find the assignments in R expression
reexports

Objects exported from other packages
nmsimplex

Nelder-Mead simplex search
removeCovMultiple

Removing multiple covariates
saemControl

Control Options for SAEM
nlmixrUI.saem.log.eta

Get model$log.eta for SAEM
nlmixrUI.nlmefun

Create the nlme parameter transform function from the UI object.
nlmixrUI.saem.theta.name

Get THETA names for nlmixr's SAEM
nlmixrUI.rxode.pred

Return RxODE model with predictions appended
nlmixrUI.saem.model

Generate SAEM model list
nlmixrVersion

Display nlmixr's version
setCov

Set the covariance type based on prior calculated covariances
warfarin

Warfarin PK/PD data
plot.saemFit

Plot an SAEM model fit
plot.nlmixrFitData

Plot a nlmixr data object
pump

Pump failure example dataset
ofv

Return the objective function
performNorm

Perform normalization of the covariate
plot.dyn.mcmc

Plot of a non-population dynamic model fit using mcmc
summary.dyn.mcmc

Print summary of a non-population dynamic model fit using mcmc
pheno_sd

Single Dose Phenobarbitol PK/PD
rats

Pregnant Rat Diet Experiment
nlmixrUI.theta.pars

Get the Parameter function with THETA/ETAs defined
prediction

Prediction after a gnlmm fit
print.dyn.ID

Print a non-population dynamic model fit object
print.gnlmm.fit

Print a gnlmm fit
removeCovVar

Remove covariate from function string
removeCovariate

Remove covariate expression from a function string
nlmixrDynmodelConvert

Converting nlmixr objects to dynmodel objects
theo_md

Multiple dose theophylline PK data
tableControl

Output table/data.frame options
vpc

Vpc function for nlmixr
summary.dyn.ID

Summary of a non-population dynamic model fit
vpc_nlmixr_nlme

Visual predictive check (VPC) for nlmixr nlme objects
summary.saemFit

Print an SAEM model fit summary
nlmixrUI.saem.model.omega

Get the SAEM model Omega
nlmixrPosthoc

Get a posthoc estimate of x
nlmixrPred

Predict a nlmixr solved system
nlmixrEst

Generic for nlmixr estimation methods
nlmixrUI.saem.res.mod

Get the SAEM model$res.mod code
nlmixrUI.saem.res.name

Get error names for SAEM
nlmixrUI.saem.rx1

Return RxODE model with predictions appended
print.nlmixrUI

Print UI function
preconditionFit

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

Calculate the inverse preconditioning matrix
print.saemFit

Print an SAEM model fit summary
saem.fit

Fit an SAEM model
residuals.nlmixrFitData

Extract residuals from the FOCEI fit
theo_sd

Multiple dose theophylline PK data
bootplot.nlmixrFitCore

Produce trace-plot for fit if applicable