fit_haiti3 | R Documentation |
A simple function that takes as input starting parameters, as well as hyperparameters to the IBPF algorithm and fits haiti3 using the given starting parameters.
fit_haiti3(
start_params,
NBPF = 5,
NP = 50,
SPAT_REGRESSION = 0.05,
NP_EVAL = 100,
NREPS_EVAL = 6,
RW_SD = NULL,
COOLING = 0.5,
start_date = "2010-11-20"
)
start_params |
a numeric vector of parameters for Haiti 3 model. |
NBPF |
number of BPF iterations to use for the IBPF algorithms. |
NP |
Number of particles for the IBPF algorithm. |
SPAT_REGRESSION |
The regression parameter for shared parameters in the IBPF algorithm. |
NP_EVAL |
Number of particles to use in the evaluation of parameter estimates. |
NREPS_EVAL |
Number of replicates of the BPF likelihood evaluation. |
RW_SD |
Random Walk SD for the IBPF algorithm. |
COOLING |
Cooling for the IBPF algorithm |
start_date |
Starting date used for Haiti 3. |
a numeric vector containing the BPF likelihood estimate of the calibrated parameters, the standard error of this estimate, followed by all of the parameters of the model (both estimated and fixed parameters.)
## Not run: fit_m1 <- fit_haiti1()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.