fit_haiti2 | R Documentation |
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.
fit_haiti2(initialization, obj_fun, ...)
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. |
A vector containing the estimated parameters and the corresponding likelihood value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.