mrgsolve
library(knitr) knitr::opts_chunk$set(comment='.', message=FALSE)
library(mrgsim) library(mrgsolve) library(dplyr)
mod <- mread("popex", modlib()) param(mod)
run <- load_run("inst/yaml/foo.yaml")
out <- sim_run(mod,run)
runtime <- system.time(out <- sim_run(mod,run))
runtime
dim(out) out %>% group_by(arm) %>% filter(time==4032) %>% summarise(Mean = mean(DV), Min = min(DV), Max = max(DV), N=n())
yam <- readLines("inst/yaml/foo.yaml") cat(yam, sep="\n")
yam <- readLines("inst/yaml/ped_adult.yaml") cat(yam, sep="\n")
The run has arms
arms(run)
treatment sequences
sequences(run)
treatment periods
run$periods
covariate sets
covsets(run)
sampling times
run$designs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.