fit_haiti2: Fit Haiti 2

View source: R/fit_haiti2.R

fit_haiti2R Documentation

Fit Haiti 2

Description

This simple function takes as input an objective function to minimize and parameter initializations, and returns the corresponding maximum likelihood estimate. Note that for this function to work properly, the objective function needs to be created using pomp::traj_objfun.

Usage

fit_haiti2(initialization, obj_fun, ...)

Arguments

initialization

A vector of parameter values that will be used as the initialization in order to perform optimization. This initialization must match the necessary parameters in the obj_fun argument.

obj_fun

The objective function to maximize, obtained as the output of pomp::traj_objfun of an instance of Model 2.

...

Additional arguments to be passed into the subplex::subplex function.

Value

A vector containing the estimated parameters and the corresponding likelihood value.


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