Skip to content

Instantly share code, notes, and snippets.

@kylebaron
Created July 14, 2017 21:04
Show Gist options
  • Save kylebaron/1f7516cd50e95e3014f5980b435028e8 to your computer and use it in GitHub Desktop.
Save kylebaron/1f7516cd50e95e3014f5980b435028e8 to your computer and use it in GitHub Desktop.
Create a data frame with parameter values
library(mrgsolve)

mod <- mread("irm1", modlib())
## Compiling irm1 ...

## done.
mrgsolve:::details(mod) %>% 
  dplyr::filter(block =="PARAM") %>%
  dplyr::select(descr,name) %>%
  dplyr::mutate(value  = as.numeric(param(mod)))
##                                      descr name value
## 1                                Clearance   CL     1
## 2                           Central volume   VC    20
## 3            Inter-compartmental clearance    Q     2
## 4        Peripheral volume of distribution   VP    10
## 5               Absorption rate constant 1  KA1     1
## 6               Absorption rate constant 2  KA2     1
## 7                Response in rate constant  KIN    10
## 8               Response out rate constant KOUT     2
## 9  Concentration for 50% of max inhibition IC50     2
## 10                      Maximum inhibition IMAX     1
## 11                 Emax model sigmoidicity    n     1
## 12               Maximum reaction velocity VMAX     0
## 13                      Michaelis constant   KM     2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment