Learn R Programming

⚠️There's a newer version (1.14.1) of this package.Take me there.

DemoDecomp (version 1.0.1)

Decompose Demographic Functions

Description

Two general demographic decomposition methods are offered: Pseudo-continuous decomposition proposed by Horiuchi, Wilmoth, and Pletcher (2008) and stepwise replacement decomposition proposed by Andreev, Shkolnikov and Begun (2002) .

Copy Link

Version

Install

install.packages('DemoDecomp')

Monthly Downloads

270

Version

1.0.1

License

GPL-3

Maintainer

Tim Riffe

Last Published

August 14th, 2018

Functions in DemoDecomp (1.0.1)

R0vec

R0vec Calculates net reproduction, R0, according to a given set of rates Lx,fx and a fixed proportion female of births, pfem.
rates1

Fake data generated for example.
rates2

Fake data generated for example.
Mxc2e0abr

get life expectancy at birth from an (abridged)age-cause matrix
Compare

Comparison decomposition results by age and cause
Mxc2e0abrvec

get life expectancy at birth from the vec of an age-cause matrix
LTabr

an abridged lifetable based on M(x)
Mxc1

Year 2002 death rates by cause for US males in abridged age classes
Mxc2

Year 2002 death rates by cause for England and Wales males in abridged age classes
stepwise_replacement

implementation of the decomposition algorithm of stepwise replacement
horiuchi

Numeric Approximation of Continuous Decomposition