All Projects β†’ metrumresearchgroup β†’ mrgsolve

metrumresearchgroup / mrgsolve

Licence: other
Simulate from ODE-based population PK/PD and QSP models in R

Programming Languages

r
7636 projects
C++
36643 projects - #6 most used programming language
Jsonnet
166 projects

Projects that are alternatives of or similar to mrgsolve

individual
R Package for individual based epidemiological models
Stars: ✭ 20 (-76.19%)
Mutual labels:  rstats
ggchicklet
πŸ€« Create Chicklet (Rounded Segmented Column) Charts
Stars: ✭ 130 (+54.76%)
Mutual labels:  rstats
epidata
πŸ“‰ Tools to Retrieve Economic Policy Institute Data Library Extracts in R
Stars: ✭ 20 (-76.19%)
Mutual labels:  rstats
fnmate
A function definition generator.
Stars: ✭ 74 (-11.9%)
Mutual labels:  rstats
tidytuesday
πŸ“Š πŸ–ŒοΈ Data visualization collection
Stars: ✭ 70 (-16.67%)
Mutual labels:  rstats
rbcb
R interface to Brazilian Central Bank web services
Stars: ✭ 63 (-25%)
Mutual labels:  rstats
attckr
βš”οΈMITRE ATT&CK Machinations in R
Stars: ✭ 22 (-73.81%)
Mutual labels:  rstats
rinat
A programmatic interface to iNaturalist
Stars: ✭ 36 (-57.14%)
Mutual labels:  rstats
ciencia datos
El curso en espaΓ±ol, de acceso abierto y gratuito mΓ‘s grande del mundo sobre Ciencia de Datos en salud.
Stars: ✭ 66 (-21.43%)
Mutual labels:  rstats
linne
🌊 Write CSS in R
Stars: ✭ 70 (-16.67%)
Mutual labels:  rstats
riem
✈️ β˜€οΈ R package for accessing ASOS data via the Iowa Environment Mesonet ☁️ ✈️
Stars: ✭ 38 (-54.76%)
Mutual labels:  rstats
tiler
Generate geographic and non-geographic map tiles from R
Stars: ✭ 56 (-33.33%)
Mutual labels:  rstats
cyphr
Humane encryption
Stars: ✭ 91 (+8.33%)
Mutual labels:  rstats
meetup-presentations buenosaires
R-Ladies Buenos Aires recursos
Stars: ✭ 23 (-72.62%)
Mutual labels:  rstats
rfishbase
R interface to the fishbase.org database
Stars: ✭ 79 (-5.95%)
Mutual labels:  rstats
pkgreviewr
R package to facilitate rOpenSci package reviews.
Stars: ✭ 35 (-58.33%)
Mutual labels:  rstats
antiword
R wrapper for antiword utility
Stars: ✭ 47 (-44.05%)
Mutual labels:  rstats
rglobi
R library to access species interaction data of http://globalbioticinteractions.org
Stars: ✭ 12 (-85.71%)
Mutual labels:  rstats
githubdashboard
#rstats github flexdashboard
Stars: ✭ 40 (-52.38%)
Mutual labels:  rstats
pbapply
Adding progress bar to '*apply' functions in R
Stars: ✭ 115 (+36.9%)
Mutual labels:  rstats

mrgsolve

Build Status CRAN License questions MetrumRG

mrgsolve is an R package for simulation from hierarchical, ordinary differential equation (ODE) based models typically employed in drug development. mrgsolve is free and open-source software.

Resources

Please see mrgsolve.github.io for additional resources, including:

Installation

Install the latest release on CRAN

install.packages("mrgsolve")

Please be sure to see important install-related information here.

Install the current development version

remotes::install_github("metrumresearchgroup/mrgsolve@dev")

Interaction

We welcome questions about anything mrgsolve: installation, getting your model to work, understanding better how mrgsolve works. We also welcome suggestions for how to make mrgsolve more useful to you and to the pharmacometrics community.

Please interact with us at the Issue Tracker. This requires a GitHub account.

Some examples

A simple simulation

library(mrgsolve)

Load a model from the internal library

mod <- mread("pk1", modlib())

Simulate a simple regimen

mod %>% 
  ev(amt = 100, ii = 24, addl = 9) %>%
  mrgsim(end = 300, delta = 0.1) %>% 
  plot(CP~time)

A more complicated regimen: 100 mg infusions over 2 hours every 24 hours for one week, followed by 50 mg boluses every 12 hours for 10 days:

mod %>% 
  ev_rx("100 over 2h q 24 x 7 then 50 q 12 x 20") %>%
  mrgsim(end = 600, delta = 0.1) %>% 
  plot(CP~time)

Population simulation

mod <- mread("popex", modlib()) %>% zero_re()

A data set looking at different patient weights and doses

library(dplyr)

data <- expand.ev(amt = c(100,150), WT = seq(40,140,20)) %>% mutate(dose = amt)

head(data)
.   ID time amt cmt evid WT dose
. 1  1    0 100   1    1 40  100
. 2  2    0 150   1    1 40  150
. 3  3    0 100   1    1 60  100
. 4  4    0 150   1    1 60  150
. 5  5    0 100   1    1 80  100
. 6  6    0 150   1    1 80  150

Simulate

mod %>% 
  data_set(data) %>% 
  carry_out(dose,WT) %>%
  mrgsim(delta = 0.1, end = 72) %>% 
  plot(IPRED~time|factor(dose),scales = "same")

Sensitivity analysis with PBPK model

mod <- modlib("pbpk")
. Building pbpk ... done.

Reference

  
  Model file: pbpk.cpp 
  
  $PROB
  # HUMAN PBPK MODEL
  1: Jones H, Rowland-Yeo K. Basic concepts in physiologically based
  pharmacokinetic modeling in drug discovery and development. CPT Pharmacometrics
  Syst Pharmacol. 2013 Aug 14;2:e63. doi: 10.1038/psp.2013.41. PubMed PMID:
  23945604; PubMed Central PMCID: PMC3828005.

Model parameters

param(mod)
. 
.  Model parameters (N=52):
.  name    value  . name  value  . name      value 
.  BP      0.98   | fumic 1      | FVve      0.0514
.  BW      70     | fup   0.681  | HLM_CLint 8     
.  CLrenal 0      | FVad  0.213  | Ka        2.18  
.  CO      108    | FVar  0.0257 | Kpad      0.191 
.  F       1      | FVbo  0.0856 | Kpbo      0.374 
.  FQad    0.05   | FVbr  0.02   | Kpbr      0.606 
.  FQbo    0.05   | FVgu  0.0171 | Kpgu      0.578 
.  FQbr    0.12   | FVhe  0.0047 | Kphe      0.583 
.  FQgu    0.146  | FVki  0.0044 | Kpki      0.597 
.  FQh     0.215  | FVli  0.021  | Kpli      0.57  
.  FQhe    0.04   | FVlu  0.0076 | Kplu      0.62  
.  FQki    0.19   | FVmu  0.4    | Kpmu      0.622 
.  FQlu    1      | FVpl  0.0424 | Kpre      0.6   
.  FQmu    0.17   | FVrb  0.0347 | Kpsk      0.6   
.  FQre    0.104  | FVre  0.0998 | Kpsp      0.591 
.  FQsk    0.05   | FVsk  0.0371 | Kpte      0.6   
.  FQsp    0.0172 | FVsp  0.0026 | .         .     
.  FQte    0.0108 | FVte  0.01   | .         .

Set up a batch to simulate

idata <- expand.idata(Kpli = seq(4,20,2))

idata
.   ID Kpli
. 1  1    4
. 2  2    6
. 3  3    8
. 4  4   10
. 5  5   12
. 6  6   14
. 7  7   16
. 8  8   18
. 9  9   20
mod %>% 
  ev(amt = 150) %>% 
  idata_set(idata) %>%
  mrgsim(end = 6, delta = 0.1) %>%
  plot(Cp~time)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].