fit_haiti1: Fit Haiti 1

View source: R/fit_haiti1.R

fit_haiti1R Documentation

Fit Haiti 1

Description

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.

Usage

fit_haiti1(start_params, NMIF, NP, NP_EVAL, NREPS_EVAL, RW_SD, COOLING = 0.5)

Arguments

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.

Value

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.


zjiang2/haitipkg documentation built on March 1, 2024, 11:34 p.m.