get.Observed: Get Observed Values

Description Usage Arguments Author(s) See Also Examples

View source: R/get_Observed.R

Description

Extract the values from an object containing an estimated mortality model (e.g. LeeCarter, Oeppen etc.). This function allows the user to read the values already converted to a life table index (e.g. life expectancy) by specifying the requiered format in the argument data.out.

Usage

1
2
get.Observed(object = NULL, data.out = c("qx", "mx", "dx", "lx", "Lx",
  "Tx", "ex"), data.in = NULL, data = NULL, x = NULL, ...)

Arguments

object

An object of class MortalityModels.

data.out

Specify the type of data to be returned in output. Various life table indices are accepted: "qx", "mx", "dx", "lx", "Lx", "Tx", "ex".

data.in

Specify the type of input data. Various life table indices are accepted: "qx", "mx", "dx", "lx".

data

A data.frame or a matrix containing mortality data with ages x as row and time y as column.

x

Numerical vector indicating the ages in input data. Optional. Default: NULL.

...

Arguments to be passed to or from other methods.

Author(s)

Marius D. Pascariu

See Also

do.MortalityModels

Examples

1
# For examples go to ?do.MortalityModels

mpascariu/MortalityForecast documentation built on Sept. 28, 2020, 2:40 p.m.