get.e0.trajectories: Accessing Trajectories of Life Expectancy

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/get_outputs.R

Description

Function for accessing trajectories of the life expectancy.

Usage

1
get.e0.trajectories(e0.pred, country)

Arguments

e0.pred

Object of class bayesLife.prediction.

country

Name or numerical code of a country.

Details

The function loads trajectories of life expectancy for the given country from disk and returns it as a matrix.

Value

Array of size the number of projection periods (including the present year) times the number of trajectories. The row names correspond to the mid-years of the prediction periods.

Author(s)

Hana Sevcikova

See Also

bayesLife.prediction, get.e0.prediction, e0.trajectories.table

Examples

1
2
3
sim.dir <- file.path(find.package("bayesLife"), "ex-data", "bayesLife.output") 
pred <- get.e0.prediction(sim.dir=sim.dir)
get.e0.trajectories(pred, "Germany")

bayesLife documentation built on April 5, 2021, 5:06 p.m.