pharmpy.modeling Package#
Functions#
|
Add an admid column to the model dataset and datainfo. |
|
Add allometric scaling of parameters |
|
Add bioavailability statement for the first dose compartment of the model. |
|
Add a CMT column to the model dataset and datainfo if not existed |
|
Adds covariate effect to |
|
Add a derivative to be calculcated when running the model. |
|
Add an effect compartment. |
|
Add estimation step |
|
Adds IIVs to |
|
Add an individual or pk parameter to a model |
|
Adds IOVs to |
|
Add indirect (turnover) effect |
|
Add lag time to the dose compartment of model. |
|
Adds a metabolite compartment to a model |
|
Adds parameter uncertainty step to the final estimation step |
|
Adds IIVs to all PD parameters in |
|
Add a peripheral distribution compartment to model |
|
Adds IIVs to all PK parameters in |
|
Add a new population parameter to the model |
|
Add predictions and/or residuals |
|
Add predictions and/or residuals |
|
Calculate and add a TAD column to the dataset |
|
Append estimation step options |
|
Bin all observations on the independent variable |
|
If the model name ends in a number increase it |
|
Calculate AIC |
|
Calculate BIC |
Calculate correlation matrix from a covariance matrix |
|
|
Calculate correlation matrix from a precision matrix |
|
Calculate covariance matrix from a correlation matrix and standard errors |
|
Calculate covariance matrix from a precision matrix |
Calculate the symbolic expression for the epsilon gradient |
|
Calculate the symbolic expression for the eta gradient |
|
|
Calculate eta shrinkage for each eta |
Calculate statistics for individual parameters |
|
|
Calculate the individual eta-shrinkage |
|
Calculate precision matrix from a correlation matrix and standard errors |
Calculate precision matrix from a covariance matrix |
|
|
Scale parameter values from ucp to normal scale |
|
Calculate statistics for common pharmacokinetic parameters |
Calculate standard errors from a covariance matrix |
|
|
Calculate standard errors from a precision matrix |
|
Calculate a scale for unconstrained parameters for a model |
|
Check dataset for consistency across a set of rules |
|
Check for highly correlated parameter estimates |
|
Check if any estimated parameter value is close to its bounds |
|
Perform various cleanups of a model |
|
Convert model to other format |
|
Creates a basic pk model of given type. |
Create a basic config file template |
|
|
Combines some or all etas into a joint distribution. |
|
Create a new random number generator |
|
Create a new unique variable symbol given a model |
|
Deidentify a dataset |
|
Displays the ordinary differential equation system |
|
Drop columns from the dataset or mark as dropped |
|
Drop columns marked as dropped from the dataset |
|
Evaluate the numeric epsilon gradient |
|
Evaluate the numeric eta gradient |
|
Evaluate expression using model |
|
Evaluate the numeric individual prediction |
|
Evaluate the numeric population prediction |
|
Evaluate the weighted residuals |
|
Expand additional doses into separate dose records |
|
Filter dataset according to expr and return a model with the filtered dataset. |
|
Find clearance parameters in model |
|
Find volume parameters in model |
|
Fix or unfix parameters |
|
Fix parameters |
|
Fix parameters to |
|
Get the admid from model dataset |
|
Baselines for each subject. |
|
Get bioavailability of doses for all compartments |
Get the volume and clearance parameters |
|
|
Get the cmt (compartment) column from the model dataset |
Create a dataframe with concentration parameters |
|
Returns path to the user config path |
|
|
Return a dictionary of all used covariates within a model |
|
Return a dataframe with baselines of all covariates for each id. |
|
Get a series of all doses |
|
Get a DOSEID series from the dataset with an id of each dose period starting from 1 |
|
Get the symbol for a certain dvid or dv and check that it is valid |
|
Get the evid from model dataset |
|
Retrieve a list of all subject ids of the dataset |
|
Retrieves all individual parameters in a |
Get the full symbolic expression for the modelled individual prediction |
|
|
Get initial conditions for the ode system |
|
Get lag times for all compartments |
|
Get MDVs from dataset |
|
Get the model code of the underlying model language |
|
List of covariates used in model |
|
Retrieve the number of individuals in the model dataset |
|
Retrieve the total number of observations in the model dataset |
Number of observations for each individual |
|
|
Get observations from dataset |
|
Get the full symbolic expression for the observation according to the model |
|
Get all omegas (variability parameters) of a model |
|
Retrieves name of random variable in |
|
Retrieves PD parameters in |
|
Retrieves PK parameters in |
Get the full symbolic expression for the modelled population prediction |
|
|
Retrieves parameters in |
|
Get all sigmas (residual error variability parameters) of a model |
|
Get all thetas (structural parameters) of a model |
|
Derive the physical unit of a variable in the model |
|
Get zero order inputs for all compartments |
|
Convert to using greek letters for all population parameters |
|
Check if a model has an additive error model |
|
Check if a model has a combined additive and proportional error model |
|
Tests if an instance of |
|
Check if ode system describes a first order absorption |
|
Check if the model describes first order elimination |
|
Check if ode system describes a instantaneous absorption |
|
Check if model has a linear ODE system |
Check if model has a linear ode system with real eigenvalues |
|
Check if the model describes Michaelis-Menten elimination |
|
|
Check if the model describes mixed Michaelis-Menten and first order elimination |
|
Check if model is Mu-reference or not. |
|
Check if model has an ODE system |
|
Checks whether a model has a presystemic metabolite |
|
Check if a model has a proportional error model |
|
Decides whether the given parameter of a |
|
Check if ode system describes a sequential zero-order, first-order absorption |
|
Check if a model has a weighted error model |
|
Check if ode system describes a zero order absorption |
|
Check if the model describes zero-order elimination |
Return the number of peripherals compartments connected to the central compartment |
|
Return the number of transit compartments in the model |
|
|
Determine if a model is linearized |
|
Determine if an expression is real valued given constraints of a model |
|
Return a list of names of all time varying covariates |
|
Load the dataset given datainfo |
|
Load an example model |
|
Make the model statments declarative |
|
Return Mu name connected to parameter |
|
Convert model to use mu-referencing |
|
Iterate over omissions of a certain group in a dataset. |
|
Plot |CWRES| vs IPRED |
|
Plot CWRES vs idv |
|
Plot DV vs IPRED |
|
Plot DV vs PRED |
|
Plot eta distributions for all etas |
|
Plot DV and predictions grouped on individuals |
|
Plot individual OFV of two models against each other |
|
Plot transformed eta distributions for all transformed etas |
|
Print the model code of the underlying model language |
|
Print all symbols defined in a model |
|
Read a dataset given a datainfo object or path to a datainfo file |
|
Read model from file |
|
Read model from the model code in a string |
|
Rename symbols in the model |
|
Remove bioavailability from the first dose compartment of model. |
|
Remove a covariate effect from an instance of |
|
Remove a derivative currently being calculcate when running model. |
|
Remove error model. |
|
Remove estimation step |
|
Removes all IIV etas given a list with eta names and/or parameter names. |
|
Removes all IOV etas given a list with eta names. |
|
Remove lag time from the dose compartment of model. |
|
Remove loq data records from the dataset |
Removes parameter uncertainty step from the final estimation step |
|
|
Remove a peripheral distribution compartment from model |
|
Remove predictions and/or residuals |
|
Remove residuals |
Remove any parameters and rvs that are not used in the model statements |
|
|
Replace all fixed thetas with constants in the model statements |
|
Replace all random variables that are not actually random |
|
Iterate over resamples of a dataset. |
|
Sample individual estimates given their covariance. |
Sample parameter vectors using the covariance matrix |
|
|
Sample parameter vectors using uniform sampling |
|
Set an additive error model. |
|
Create baseline effect model. |
|
Set a combined error model. |
|
Set columns in the dataset to be covariates in the datainfo |
|
Load the dataset given datainfo |
|
Set description of model object |
|
Add an effect to a model. |
|
Dynamic transform both sides |
|
Set a column to act as DVID. |
|
Set estimation step |
|
Set estimation step |
|
Set or change to first order absorption rate. |
|
Sets elimination to first order |
|
Multiplies epsilons with exponential (new) etas. |
|
Set an initial condition for the ode system |
|
Update initial parameter estimate for a model |
|
Set or change to instantaneous absorption rate. |
|
Set a dv value for lloq data records |
|
Set parameter lower bounds |
Sets elimination to Michaelis-Menten. |
|
|
Sets elimination to mixed Michaelis-Menten and first order. |
|
Set name of model object |
|
Sets ODE solver to use for model |
|
Sets the number of peripheral compartments for central compartment to a specified number. |
|
Applies a power effect to provided epsilons. |
|
Set a proportional error model. |
|
Set reference values for selected columns |
|
Set or change to sequential zero order first order absorption rate. |
|
Change model into simulation model |
|
Set a time varying error model per time cutoff |
|
Sets target mediated drug disposition |
|
Set the number of transit compartments of model. |
|
Set parameter upper bounds |
|
Encode error model with one epsilon and W as weight |
|
Set or change to zero order absorption rate. |
|
Sets elimination to zero order. |
|
Set a zero order input for the ode system |
|
Simplify expression given constraints in model |
|
Replace ODE system with analytical solution if possible |
|
Splits etas following a joint distribution into separate distributions. |
|
Transform for BLQ data |
|
Applies a boxcox transformation to selected etas |
|
Applies a John Draper transformation [1]_ to spelected etas |
|
Applies a t-distribution transformation to selected etas |
|
Translate NM-TRAN TIME and DATE column into one TIME column |
|
Unfix parameters |
|
Unfix parameters to |
|
Update initial individual estimates for a model |
|
Use thetas to estimate standard deviation of error |
|
Write dataset to a csv file and updates the datainfo path |
|
Write model code to file |
|
Remove all constraints from parameters |
|
Undrop columns of model |
|
Unload the dataset from a model |
|
Creates a VPC plot for a model |