Evaluate precision dosingAll these functions need a model, see section ‘Models’ |
|
---|---|
Fit population dataThese functions perform posthoc and/or proseval on population data |
|
Utility function to create a data tibble. |
|
Find the individual parameters for a set of virtual subjects in a population, either based on all available data (posthoc), or including data piece-wise as time progresses (proseval). |
|
Add predictions for the populationThese functions can be used to append predictions to each tdmorefit instance in the population |
|
Predict new data using a model fit |
|
Calculate the log-likelihood of the predicted values. If fixed values were used to obtain the tdmorefit, they are considered estimated and are included in the population log-likelihood. |
|
Create a typical value subject |
|
Create a tiible of N random tdmorefit instances |
|
Simulate precision dosing |
|
Simulate dose adaptation in a population |
|
Models |
|
Tdmore modelsParameter estimation and dose recommendation needs a model. The methods below allow you to construct a model using |
|
Append TDM functionality to a pharmacometrics structural model. |
|
Instantiate a new error model. |
|
MetadataModel metadata allows to intelligently guess certain default settings |
|
Append metadata to a TDMore model |
|
Get the dosing interval for the given formulation |
|
Create a new covariate object. |
|
Create a new output object. |
|
Create a new formulation object. |
|
Create a new target. |
|
Get metadata (output, formulation or covariate) by name. |
|
Get metadata by class. |
|
Create an 'observed variables' object. This metadata indicates that these variables are interesting outputs of the model, and should be included in a plot. |
|
Get the observed variables from the tdmore model. |
|
Algebraic modelsUse an algebraic model in tdmore |
|
Initialize a structural model using algebraic equations. |
|
Build a tdmore object based on an algebraic model |
|
This function guesses which model should be calculated, based on the available variables in the caller environment |
|
|
Algebraic equations for PK models |
|
Executes the requested PK model, and fetches the arguments from the caller's environment. |
Execute the appropriate PK model, based on the same rules as used by Monolix |
|
Model-predictive controlReplace empirical bayesian estimation with model-predictive control in a tdmore model |
|
MPC is a generic function to make a tdmore model compatible with MPC. |
|
Mixture modelsA mixture model combines two subpopulations with an a priori probability of belonging to either model A or model B |
|
Create a TDMore mixture model. |
|
Create a TDMore mixture model, based on several options for a discrete covariate. |
|
Example modelsExample datasets, with their respective population PK model as estimated by nlmixr. |
|
Theophylline dataset, as included in the NONMEM distribution. |
|
NlmixrUI object describing theophylline 1-compartment model with oral absorption |
|
Phenobarbitol dataset, as included in the NONMEM distribution. |
|
NlmixrUI object describing Phenobarbitol 1-compartment model with IV administration and allometric scaling on weight |
|
This searches for the given model name in a directory |
|
Get the first available model name in the given directory |
|
PlottingThese functions can be used to plot more detail for predictions |
|
Automatically plot a tdmorefit object |
|
Plot a tdmorefit object. |
|
Automatically create the required layers for a recommendation object |
|
Plot a tdmorefit_mixture object. |
|
Generate a plot of the parameters |
|
This creates a special type of ggplot2 Layer object. The layer searches for a tdmorefit object in either the plot, or its own arguments. It then calls the `predict()` function and provides this data.frame instead of the original data |