mort.fit.cv: mort.fit.cv

Description Usage Arguments Value

View source: R/library.R

Description

fit one of the functions to mortality data using k-fold cross-validation this function basically chooses k folds, runs mort.fit on each one, computes the error, and then re-runs the fit on the entire data; finally, it returns the result. it is designed to be called automatically from mort.fit when that method is passed a mortalityDataFolded object.

Usage

1
2
mort.fit.cv(model.obj, data, method, verbose = TRUE, random.start = FALSE,
  keep.folds.fits = FALSE, ...)

Arguments

model.obj

the mortalityModel object

data

a mortalityDataFolded object

method

a fitMethod

verbose

if TRUE, print extra info

keep.folds.fits

if TRUE, retain all of the results from fitting each individual fold. this is useful for debugging, but can take up a lot of memory.

...

other arguments to mort.fit

Value

a mortalityFit object


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