Generates a flextable containting the parameter estimates.
Value
List with the following elements
"isgood"
- Boolean variable indicating success or failure"msgs"
- Vector of messages"ft"
- Parameter estimates as aflextable
object"df"
- Parameter estimates as adata.frame
Examples
library(onbrand)
obnd = read_template(
template = system.file(package="nlmixr2rpt", "templates","nlmixr_obnd_template.pptx"),
mapping = system.file(package="nlmixr2rpt", "templates","nlmixr_obnd_template.yaml"))
# This will create an example fit object to use in the examples below
fit = fetch_fit_example()
#'# This reads in the report details as well
rptdetails = yaml_read_fit(
obnd = obnd,
rptyaml = system.file(package="nlmixr2rpt", "examples", "report_fit_test.yaml"),
fit = fit)$rptdetails
gen_pest_table(obnd = obnd, fit = fit, rptdetails = rptdetails, verbose = TRUE)
#> $isgood
#> [1] TRUE
#>
#> $msgs
#> NULL
#>
#> $ft
#> $ft[[1]]
#>
#>
#> $df
#> $df[[1]]
#> Parameter Est. SE %RSE Back-transformed(95%CI) BSV(CV%) Shrink(SD)%
#> tka Log Ka 0.476 0.203 42.7 1.61 (1.08, 2.39) 69.8 1.23%<
#> tcl Log Cl 1.02 0.0754 7.42 2.76 (2.38, 3.2) 26.1 2.36%<
#> tv Log V 3.46 0.0632 1.83 31.8 (28.1, 36) 13.8 9.71%<
#> add.sd add.sd 0.696 0.696
#>
#>