knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
assemblerr is an R package to construct pharmacometric models by combining pre-defined model components. It's intended to simplify the specification of complex pharmacometric models and provide a mechanism to generate models in an automatic way. With assemblerr, models are specified using R code and then converted to a NONMEM control stream.
You can install the latest CRAN version assemblerr
using:
install.packages("assemblerr")
Load assemblerr
library(assemblerr)
Build a simple model
m <- model() + input_variable("dose") + prm_log_normal("emax", median = 10, var_log = 0.09) + prm_log_normal("ed50", median = 50, var_log = 0.09) + algebraic(effect~emax*dose/(ed50 + dose)) + obs_additive(~effect, var_add = 1)
Generate NONMEM code
render(m)
The best place to learn how to use assemblerr is the vignette "Getting Started". It provides an overview of the functionality in assemblerr and helps you building your own models. A simple way to find it is using the vignette()
function in R:
vignette("getting-started", package = "assemblerr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.