fit_haiti3: Fit Haiti3

View source: R/fit_haiti3.R

fit_haiti3R Documentation

Fit Haiti3

Description

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.

Usage

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"
)

Arguments

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.

Value

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.)

Examples

## Not run: fit_m1 <- fit_haiti1()

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