Code Monkey home page Code Monkey logo

clinpk's Introduction

clinPK: Clinical Pharmacokinetics Toolkit

Overview

The clinPK package provides equations commonly used in clinical pharmacokinetics and clinical pharmacology, such as equations for dose individualization, compartmental pharmacokinetics, drug exposure, anthropomorphic calculations, clinical chemistry, and conversion of common clinical parameters. Where possible and relevant, it provides multiple published and peer-reviewed equations within the respective R function.

Installation

The development version of clinPK always has the most up-to-date improvements and bug fixes. We aim to release clinPK on CRAN at least once a year, depending on the number and impact of updates made to the development version.

The CRAN version of clinPK can be installed using:

install.packages("clinPK")

The development version of clinPK can be installed using:

devtools::install_github("InsightRX/clinPK")

Contributing

We welcome input from the community:

  • If you think you have encountered a bug, please submit an issue on the GitHub page. Please include a reproducible example of the unexpected behavior.

  • Please open a pull request if you have a fix or updates that would improve the package. If you're not sure if your proposed changes are useful or within scope of the package, feel free to contact one of the authors of this package.

Disclaimer

The functionality in this R package is provided "as is". While its authors adhere to software development best practices, the software may still contain unintended errors.

InsightRX Inc. and the authors of this package can not be held liable for any damages resulting from any use of this software. By the use of this software package, the user waives all warranties, expressed or implied, including any warranties to the accuracy, quality or suitability of InsightRX for any particular purpose, either medical or non-medical.


© InsightRX logo

clinpk's People

Contributors

dominic-irx avatar insightrx-ci avatar jasmineirx avatar jordanbrooks33 avatar karawoo avatar perugolate avatar roninsightrx avatar ronkeizer avatar vikrammatange avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

clinpk's Issues

Minor error in documentation

Thank you Ron for the fantastic package. Just a small error in documentation - all the pk_2cmt_*.R still say 1-compartment model in the first line of documentation. Minor error, but it was confusing at first.

Thanks!
Satya

unexpected behaviour, `pk_2cmt_inf` vs `pk_1cmt_inf`

> pk_1cmt_inf()
    t       dv
1   0 0.000000
2   1 1.586043
3   2 3.021154
4   3 2.733653
5   4 2.473512
6   5 2.238126
7   6 2.025140
8   7 1.832423
9   8 1.658045
10  9 1.500261
11 10 1.357492
12 11 1.228310
13 12 1.111420
14 13 2.591698
15 14 3.931108
16 15 3.557014
17 16 3.218519
18 17 2.912237
19 18 2.635101
20 19 2.384338
21 20 2.157438
22 21 1.952131
23 22 1.766361
24 23 1.598269
25 24 1.446174
> pk_1cmt_inf(t = 24)
   t       dv
1 24 1.446174
> pk_2cmt_inf()
    t        dv
1   0 0.0000000
2   1 3.0736916
3   2 2.6196162
4   3 2.2488519
5   4 1.9451497
6   5 1.6954759
7   6 1.4893737
8   7 1.3184518
9   8 1.1759745
10  9 1.0565334
11 10 0.9557839
12 11 0.8702344
13 12 0.7970773
14 13 3.8077451
15 14 3.2989601
16 15 2.8803340
17 16 2.5344348
18 17 2.2472729
19 18 2.0076180
20 19 1.8064519
21 20 1.6365298
22 21 1.4920287
23 22 1.3682655
24 23 1.2614716
25 24 1.1686115
> pk_2cmt_inf(t = 24)
   t        dv
1 24 0.5812193
R version 4.3.1 (2023-06-16)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Big Sur ... 10.16
clinPK_0.11.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.