Deprecated Simulation Functions

changing_ratemat_elements(model, sim_params = NULL)

simulate_changing_ratemat_elements(model, sim_params = NULL, add_dates = FALSE)

concatenated_state_vector(model, sim_params = NULL)

simulate_state_vector(
  model,
  sim_params = NULL,
  add_dates = FALSE,
  format = c("wide", "long", "ggplot")
)

initial_state_vector(model, sim_params = NULL)

final_state_vector(model, sim_params = NULL)

penultimate_state_vector(model, sim_params = NULL)

final_state_ratio(model, sim_params = NULL)

initial_ratemat(model, sim_params = NULL)

simulation_condensed(model, add_dates = TRUE, sim_params = NULL)

condense_flexmodel(model)

# S3 method for flexmodel
simulate(
  object,
  nsim = 1,
  seed = NULL,
  do_condensation = FALSE,
  format = c("long", "wide"),
  add_dates = TRUE,
  sim_params = NULL,
  ...
)

simulation_fitted(model)

Arguments

model

flexmodel

sim_params

parameter vector to pass to a TMB objective function

add_dates

should column with dates be added to the output

format

how to return the results

object

flexmodel object

nsim

number of simulations

seed

random seed

do_condensation

should condensed set of variables be returned if available

See also

Other simulation: simulate_ensemble(), simulation_history()