optim.fit: optim.fit

Description Usage Arguments Value

View source: R/fitmethod-optim.R

Description

use optim to fit a mortality model

Usage

1
2
optim.fit(model.obj, data, theta.init = NULL, random.start = FALSE,
  verbose = FALSE, auto.retry = TRUE, ...)

Arguments

model.obj

a mortalityModel object

data

a mortalityData object

theta.init

if not NULL, starting values to use for theta

random.start

if TRUE, and the model.obj has a non-NULL theta.range, then draw a random starting value uniformly from the values specified by theta.range

verbose

if TRUE, print extra info

auto.retry

if TRUE, then if convergence isn't reached, automatically retry with another draw of random starting values

...

TODO

Value

a mortalityFitOptim object


dfeehan/mortfit documentation built on Nov. 14, 2020, 9:04 p.m.