Example with all information in the yaml file (except from parameter name) and bootstrap information available.

knitr::opts_chunk$set(echo = TRUE)

Setup environment

# ----- Load package -----
library(pmxpartabc)

# ----- Define directory and file names -----
run_dir    <- file.path(system.file(package = "pmxpartabc"), "examples")
run_dir.boot <- file.path(run_dir, 'bootstrap_dir2')
run_prefix <- "run"
runno     <-  "6"
runno.boot <- "5boot"
yaml.file.name <- file.path(system.file(package = "pmxpartabc"), "meta.yaml")

Parameter table 1 - using yaml file

output <- parframe2setup(run_dir, 
                         run_prefix, 
                         runno,
                         bootstrap = TRUE, 
                         run_dir.boot, 
                         runno.boot, 
                         conf.level = 0.95, 
                         min_suc = TRUE, 
                         yaml.file = TRUE, 
                         yaml.file.name = yaml.file.name)

tab <- parframe(out=output[[1]], meta=output[[2]], bootstrap=TRUE)  

tab1 <- pmxpartab(tab, output[[2]], columns=c(value="Estimate", rse="RSE%", ci95="95%CI", shrinkage="Shrinkage"))

print(tab1)

Session information

sessionInfo()


certara/pmxpartabc documentation built on March 16, 2024, 4:38 p.m.