import_morse {cvasi} | R Documentation |
Import morse
model parameters
Description
Loads GUTS model parameters which were fitted by the morse package.
Usage
import_morse(
fit,
find_sd = TRUE,
find_it = TRUE,
reset_hb = TRUE,
params = c("estim", "all"),
mcmc_size,
find.SD = deprecated(),
find.IT = deprecated(),
reset.hb = deprecated(),
mcmc.size = deprecated(),
file = deprecated()
)
morse(...)
Arguments
fit |
Either a string with a file path to an .Rdata or .RDS file containing a morse fit, or a morse fit object itself |
find_sd |
a logical value. If |
find_it |
a logical value. If |
reset_hb |
a logical value. If |
params |
|
mcmc_size |
optional |
find.SD |
deprecated |
find.IT |
deprecated |
reset.hb |
deprecated |
mcmc.size |
deprecated |
file |
deprecated |
... |
Arguments passed on to |
Value
list of parameter_set objects
Functions
-
morse()
: deprecated alias
Examples
# import all parameter fits
try(import_morse("path/to/morse_fit.RData"))
# import parameters for a specific model
try(import_morse("path/to/morse_fit.RData", find_it=TRUE, find_sd=FALSE))
# modify model objects
try(models %>% set_param(import_morse("path/to/morse_fit.RData")))