pharmpy.model Package#

Functions#

get_and_check_dataset(model)

Get the ode_system from model and raise if not a CompartmentalSystem

get_and_check_odes(model)

Get the ode_system from model and raise if not a CompartmentalSystem

to_compartmental_system(names, eqs)

Convert an list of odes to a compartmental system

Classes#

Assignment(symbol, expression)

Representation of variable assignment

Bolus(amount[, admid])

A Bolus dose

ColumnInfo(name[, type, unit, scale, ...])

Information about one data column

Compartment(name, amount[, doses, input, ...])

Compartment for a compartmental system

CompartmentalSystem(builder[, t])

System of ODEs descibed as a compartmental system

CompartmentalSystemBuilder([cs])

Builder for CompartmentalSystem

DataInfo([columns, path, separator, ...])

Metadata for the dataset

DatasetError

Exception for errors in the dataset

DatasetWarning

Warning for recoverable issues in the dataset

Distribution()

EstimationStep(method[, interaction, ...])

Definition of one estimation operation

ExecutionSteps([steps])

A sequence of estimation steps

Infusion(amount[, admid, rate, duration])

An infusion dose

JointNormalDistribution(names, level, mean, ...)

Joint distribution of random variables

Model([name, parameters, random_variables, ...])

The Pharmpy model class

ModelError

Exception for errors in model object

ModelfitResultsError

Exception for issues with ModelfitResults

ModelSyntaxError([msg])

Exception for Syntax errors in model code

NormalDistribution(name, level, mean, variance)

Normal distribution for one random variable

Parameter(name, init[, lower, upper, fix])

A single parameter

Parameters([parameters])

An immutable collection of parameters

RandomVariables(dists, eta_levels, ...)

A collection of distributions of random variables

SimulationStep([n, seed, solver, ...])

Definition of one simulation operation

Statement()

Abstract base class for all types of statements

Statements([statements])

A sequence of symbolic statements describing the model

VariabilityHierarchy([levels])

Description of a variability hierarchy

VariabilityLevel(name[, reference, group])

A variability level