Function runs a retrospective analysis for a FIMS model based on a vector of years to be removed from the data
run_fims_retrospective.RdFunction runs a retrospective analysis for a FIMS model based on a vector of years to be removed from the data
Arguments
- years_to_remove
vector of number of years to remove (e.g. if you want to do 5 peels, years_to_remove = 0:5)
- data
full dataset used in base model run
- parameters
input parameters used in base FIMS model
- n_cores
The number of cores to use to run likelihood profile in parallel. Default is
parallel::detectCores() - 1.
Value
A list containing the vector of parameter values and a dataframe of estimates from each retrospective peel
Examples
if (FALSE) { # \dontrun{
library(FIMS)
# Use built-in dataset from FIMS
data("data1")
# Create a parameters object
parameters <- data_4_model |>
create_default_configurations() |>
create_default_parameters(data = data_4_model)
fit1 <- run_fims_retrospective(
years_to_remove = 1,
data = data1,
parameters = parameters,
n_cores = 1
)
} # }