Learn R Programming

lifecontingencies (version 0.0.2)

dxt: Deaths function.

Description

Function to calculate deaths between time intervals

Usage

dxt(object, x, t)

Arguments

object
A lifetable or actuarialtable object.
x
Age since with the death shall be evaluated.
t
Time span, assumed one if missing.

Value

  • An integer value

Warning

The function is provided as is, without any guarantee regarding the accuracy of calculation. The author disclaims any liability for eventual losses arising from direct or indirect use of this software.

Details

This simple function is essential for more useful actuarial functions.

References

Actuarial Mathematics (Second Edition), 1997, by Bowers, N.L., Gerber, H.U., Hickman, J.C., Jones, D.A. and Nesbitt, C.J.

See Also

pxt

Examples

Run this code
#loads and show
	data(demoita)
	head(demoita)
	#creates ips55 life and actuarial table
	lxIPS55M<-with(demoita, IPS55M)
	pos2Remove<-which(lxIPS55M	lxIPS55M<-lxIPS55M[-pos2Remove]
	xIPS55M<-seq(0,length(lxIPS55M)-1,1)
	#create the table
	IPS55Mlt=new("lifetable",x=xIPS55M,lx=lxIPS55M,name="IPS55M")
	#deaths between 90 and 92
	dxt(object=IPS55Mlt, x=90, t=2)

Run the code above in your browser using DataLab