GithubHelp home page GithubHelp logo

asancpt / shiny-caff Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 648 KB

:sunny: Shiny App: Caffeine Concentration Predictor. https://asan.shinyapps.io/caff/

R 93.77% HTML 6.23%
drug-concentration shiny plasma r pharmacometrics data-science caffeine-concentration-predictor pharmacology medicine

shiny-caff's Introduction

Caffeine Concentration Predictor

Reference

This work is solely dependent on the interesting paper published in Eur J Pediatr in 2015.

  • "Prediction of plasma caffeine concentrations in young adolescents following ingestion of caffeinated energy drinks: a Monte Carlo simulation." Eur J Pediatr. 2015 Dec;174(12):1671-8. doi: 10.1007/s00431-015-2581-x https://www.ncbi.nlm.nih.gov/pubmed/26113286
  • "Clinical pharmacokinetics and pharmacodynamics: concepts and applications, 4th edition" Lippincott Williams & Wilkins. 2011. ISBN 978-0-7817-5009-7

The pharmacokinetic parameters from the paper were derived and used in the app as follows:

$$ \begin{split} \begin{bmatrix} \eta_1 \newline \eta_2 \newline \eta_3 \end{bmatrix} & \sim MVN \bigg( \begin{bmatrix} 0 \newline 0 \newline 0 \end{bmatrix} , \begin{bmatrix} 0.1599 & 6.095 \cdot 10^{-2} & 9.650 \cdot 10^{-2} \newline 6.095 \cdot 10^{-2} & 4.746 \cdot 10^{-2} & 1.359 \cdot 10^{-2} \newline 9.650 \cdot 10^{-2} & 1.359 \cdot 10^{-2} & 1.004 \end{bmatrix} \bigg) \newline \newline CL\ (mg/L) & = 0.09792 \cdot W \cdot e^{\eta1} \newline V\ (L) & = 0.7219 \cdot W \cdot e^{\eta2} \newline k_a\ (1/hr) & = 4.268 \cdot e^{\eta3} \newline \newline k\ (1/hr) & = \frac{CL}{V} \newline t_{1/2}\ (hr) & = \frac{0.693}{k} \newline t_{max}\ (hr) & = \frac{ln(k_a) - ln(k)}{k_a - k} \newline C_{max}\ (mg/L) & = \frac{Dose}{V} \cdot \frac{k_a}{k_a - k} \cdot (e^{-k \cdot t_{max}} - e^{-k_a \cdot t_{max}}) \newline AUC\ (mg \cdot hr / L) & = \frac{Dose}{CL} \newline \newline C_{av,ss} & = \frac{Dose}{CL \cdot \tau} \newline AI & = \frac{1}{1-e^{-k_e \cdot \tau}} \newline \end{split} $$ (Abbreviation: $AI$, accumulation index; $AUC$, area under the plasma drug concentration-time curve; $CL$, total clearance of drug from plasma; $C_{av,ss}$, average drug concentration in plasma during a dosing interval at steady state on administering a fixed dose at equal dosing intervals; $C_{max}$, highest drug concentration observed in plasma; $MVN$, multivariate normal distribution; $V$, Volume of distribution (apparent) based on drug concentration in plasma; $W$, body weight (kg); $\eta$, interindividual random variability parameter; $k$, elimination rate constant; $k_a$, absorption rate constant; $\tau$, dosing interval; $t_{1/2}$, elimination half-life)

R Packages

Caffeine contents

shiny-caff's People

Contributors

shanmdphd avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.