morse: Import 'morse' model parameters

View source: R/morse.R

morseR Documentation

Import morse model parameters

Description

Loads GUTS model parameters which were fitted by the morse package.

Usage

morse(
  file,
  find.SD = TRUE,
  find.IT = TRUE,
  reset.hb = TRUE,
  params = c("estim", "all"),
  mcmc.size
)

Arguments

file

Path to .RData file

find.SD

a logical value. If TRUE, it will try to find fitted parameters of the GUTS_SD model

find.IT

a logical value. If TRUE, it will try to find fitted parameters of the GUTS_IT model

reset.hb

a logical value. If TRUE, the background hazard rate hb is set to zero

params

character, if "estim" is selected then only the fitted parameter set for each model is returned, else for "auto" all parameter sets in the MCM chains are returned

mcmc.size

optional integer, sets the maximum number of imported parameter sets per MCMC, all parameters are imported by default

Value

vector of parameter_set objects

Examples

# import all parameter fits
try(morse("path/to/morse_fit.RData"))

# import parameters for a specific model
try(morse("path/to/morse_fit.RData", find.IT=TRUE, find.SD=FALSE))

# modify model objects
try(models %>% set_param(morse("path/to/morse_fit.RData")))

cvasi documentation built on Sept. 23, 2024, 9:08 a.m.