Control for if2()
. This function constructs a list of
options and does some basic validation. Do not manually change the
values in this object. Do not refer to any argument by position as
the order of the arguments may change in future.
if2_control(pars_sd, iterations, n_par_sets, cooling_target, progress = TRUE)
The initial standard deviation of parameter walks.
The number of IF2 iterations to run, across which the cooling is performed
The number of parameter sets to walk (c.f. the population size)
A factor < 1 multiplying pars_sd, which will be reached by the end of the iterations, and approached geometrically
Logical, indicating if a progress bar should be
displayed, using progress::progress_bar
.
An if2_control
object, which should not be modified once
created. Pass this into if2()
mcstate::if2_control(list(beta = 0.2, gamma = 0.2), 100, 1000, 0.5)
#> $pars_sd
#> $pars_sd$beta
#> [1] 0.2
#>
#> $pars_sd$gamma
#> [1] 0.2
#>
#>
#> $iterations
#> [1] 100
#>
#> $n_par_sets
#> [1] 1000
#>
#> $cooling_target
#> [1] 0.5
#>
#> $progress
#> [1] TRUE
#>
#> attr(,"class")
#> [1] "if2_control"