Skip to main content

Pharmacometric modeling

Project description

badge1 badge2 badge3 badge4 badge5 badge6

Getting started

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

User guide

There is also a user guide for getting started

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-2.0.0.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pharmpy_core-2.0.0-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file pharmpy_core-2.0.0.tar.gz.

File metadata

  • Download URL: pharmpy_core-2.0.0.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pharmpy_core-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7cf8cfee90e11c0f0046d219300580e9e347f78d92dc3e2cbf90f11493bd4042
MD5 bec905713210b40414c41509b6050020
BLAKE2b-256 3f70db4bd5adfe55eccfcf7b44a8a93f52874f8f040f116cc40c8862e80f5a1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pharmpy_core-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pharmpy_core-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 012994219949c797f341c5ea2e20202af16f1dd0e0857c44d09d1fc99b9431e5
MD5 cf73656f9339f4a9e06cfc47e42c5b88
BLAKE2b-256 91d4825c8cb61359baddace91099481b0332505c940122956504179028a4afdc

See more details on using hashes here.

Supported by

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