availableLF: Check Available Loss Function

Description Usage Value Author(s) See Also Examples

View source: R/availableLF.R

Description

The function returns information about the implemented loss function used by the optimization procedure in the MortalityLaw function.

Usage

1

Value

A list of class availableLF with the components:

table

Table with loss functions and codes to be used in MortalityLaw.

legend

Table with details about the abbreviation used.

Author(s)

Marius D. Pascariu

See Also

MortalityLaw

Examples

1

Example output

Loss functions available in the package:

 LOSS FUNCTION                                  CODE     
 L = -[Dx * log(mu) - mu*Ex]                    poissonL 
 L = -[Dx * log(1 - exp(-mu)) - (Ex - Dx)*mu]   binomialL
 L =  [1 - mu/ov]^2                             LF1      
 L =  log[mu/ov]^2                              LF2      
 L =  [(ov - mu)^2]/ov                          LF3      
 L =  [ov - mu]^2                               LF4      
 L =  [ov - mu] * log[ov/mu]                    LF5      
 L =  abs(ov - mu)                              LF6      

LEGEND:
Dx: Death counts
Ex: Population exposed to risk
mu: Estimated value
ov: Observed value

HINT: Most of the functions work well with 'poissonL', however for complex mortality laws like Heligman-Pollard (HP) one can obtain a better fit using other loss functions (e.g. 'LF2'). You are strongly encouraged to test different option before deciding on the final version. The results might be slightly different.

MortalityLaws documentation built on Sept. 16, 2020, 5:08 p.m.