README.md

R-CMD-check codecov

Requirements

Installation

Install the latest stable release using devtools:

devtools::install_github("Calvagone/campsis")

Basic example

Import the campsis package:

library(campsis)

Create your dataset:

ds <- Dataset(50)
ds <- ds %>% add(Bolus(time=0, amount=1000, ii=12, addl=2))
ds <- ds %>% add(Observations(times=seq(0, 36, by=0.5)))

Load your own model or use a built-in model from the library:

model <- model_library$advan4_trans4

Simulate your results with your preferred simulation engine:

results <- model %>% simulate(dataset=ds, dest="RxODE", seed=1)

Plot your results:

shadedPlot(results, "CP")



Calvagone/campsis documentation built on Jan. 14, 2022, 9:40 p.m.