get_boot_ci: Extract the bootstrapped confidence interval

View source: R/model_misc.R

get_boot_ciR Documentation

Extract the bootstrapped confidence interval

Usage

get_boot_ci(
  model_boot,
  table_name = character(0),
  interval = c(0.025, 0.975),
  cache_file = character(0),
  force = FALSE
)

Arguments

model_boot

bootstrapped MxModel

table_name

a character vector of the names of MxAlgebra or MxMatrix in the model for which the CI is estimated. If this is character(0), it will try to extract the names of the output tables from the model using output_tables() (a character vector stored in @output$output_tables)

interval

the interval's quantile (default is 95

\item

cache_filea string indicating the file where the parameter tables will be stored (.rds)

\item

forceforce the computation regardless of whether the cache file exists or not

a table in the form of mlth.data.frame If the bootstrap has been applied to the model, this function helps to extract the bootstrapped confidence interval and present it in a table combined with the parameters' estimates. Since the extraction of CI for the computed parameters can take long time, it also allows saving the tables to cache. If the cache file already exists, it will load the tables from it


IvanVoronin/TwinAnalysis documentation built on July 24, 2024, 9:36 p.m.