fit_haiti1 | R Documentation |
This simple function takes as input starting values for Model 1 parameters, as well as hyperparameters to the IF2 algorithm and fits Model 1 using these input values.
fit_haiti1(start_params, NMIF, NP, NP_EVAL, NREPS_EVAL, RW_SD, COOLING = 0.5)
start_params |
A numeric vector of parameters for Model 1. |
NMIF |
Integer number of IF2 iterations. |
NP |
Integer number of particles for the IF2 algorithm. |
NP_EVAL |
Integer number of particles to use in the particle filter that is used to estimate the log-likelihood of the fitted model. |
NREPS_EVAL |
Number of repeated likelihood evaluations. |
RW_SD |
Random walk standard deviations for the IF2 algorithm. |
COOLING |
Cooling rate for the IF2 algorithm. |
A numeric vector containing the log-likelihood estimate of the model parameters, an estimate of the standard error of the estimated likelihood, and the parameter vector resulting from the IF2 algorithm.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.