Return the number of iterations used to produce a spatial interaction model
Source:R/sim.R
sim_iterations.RdReturn the number of iterations used to produce a spatial interaction model
Value
the number of iterations, which is one for a static model (see
static_blvim()). In the case of a sim_list the function returns a
vector with one number of iterations per model.
Examples
distances <- french_cities_distances[1:10, 1:10] / 1000 ## convert to km
production <- log(french_cities$population[1:10])
attractiveness <- log(french_cities$area[1:10])
model <- static_blvim(distances, production, 1.5, 1 / 250, attractiveness)
sim_iterations(model) ## must be one
#> [1] 1
dyn_model <- blvim(distances, production, 1.5, 1 / 250, attractiveness)
sim_iterations(dyn_model)
#> [1] 3600