Skip to main content

Pharmacometric modeling

Project description

badge1 badge2 badge3 badge4 badge5 badge6

Getting started

The sections below are intended as first steps, please check our website website for more comprehensive documentation, such as user guides and API references.

Installation

For installation in R, see pharmr.

Install the latest stable version from PyPI:

pip install pharmpy-core # or ‘pip3 install’ if that is your default python3 pip

Python Example

>>> from pharmpy.modeling import read_model
>>> from pharmpy.tools import load_example_modelfit_results
>>> model = load_example_model("pheno")
>>> model.parameters
            value  lower upper    fix
POP_CL   0.004693   0.00     ∞  False
POP_VC   1.009160   0.00     ∞  False
COVAPGR  0.100000  -0.99     ∞  False
IIV_CL   0.030963   0.00     ∞  False
IIV_VC   0.031128   0.00     ∞  False
SIGMA    0.013086   0.00     ∞  False
>>> res = load_example_modelfit_results("pheno")
>>> res.parameter_estimates
POP_CL     0.004696
POP_VC     0.984258
COVAPGR    0.158920
IIV_CL     0.029351
IIV_VC     0.027906
SIGMA      0.013241
Name: estimates, dtype: float64
>>>

CLI Example

# Get help
pharmpy -h

# Remove first ID from dataset and save new model using new dataset
pharmpy data filter run1.mod 'ID!=1'

# Run tool for selecting IIV structure
pharmpy run iivsearch run1.mod

Contact

This is the team behind Pharmpy

Please ask a question in an issue or contact one of the maintainers if you have any questions.

Contributing

If you interested in contributing to Pharmpy, you can find more information under Contribute.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pharmpy-core-1.3.0.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

pharmpy_core-1.3.0-py3-none-any.whl (916.4 kB view details)

Uploaded Python 3

File details

Details for the file pharmpy-core-1.3.0.tar.gz.

File metadata

  • Download URL: pharmpy-core-1.3.0.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pharmpy-core-1.3.0.tar.gz
Algorithm Hash digest
SHA256 6e0b11ca8a0e25f1eb54082cd98bd5fd591e3970f08c667c84e1ba6f3e4e335e
MD5 6da425886cdda3b09b843b5ca89416ee
BLAKE2b-256 bb8410158dbbb175a49709e5505ea63dff6f4a444c9c89d570caaf73369c2334

See more details on using hashes here.

File details

Details for the file pharmpy_core-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: pharmpy_core-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 916.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pharmpy_core-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61f40bcaf3733a214cacb8cdfff71f6b4212a50c6211266de6fcfd1333c42e8c
MD5 627cd1d927a7b303c5c9cd452c50330f
BLAKE2b-256 6e8ecde1f5de6e2c76287fea47a8751a1ca79c931eb7f876189f4025483fc068

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page