Learn R Programming

lifecontingencies (version 0.0.2)

qxt: Function to return death probability.

Description

This function returns death probability between age x and x+t.

Usage

qxt(object, x, t)

Arguments

object
A lifetable object.
x
Age from which survival probability should be calculated.
t
Time horizon.

Value

  • A numeric value representing death probability

Warning

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

Details

It is calculated applying $1-p_{x}^{t}$

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

lifetable

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")
	#shows survival probability between 90 and 92
	qxt(object=IPS55Mlt, x=90, t=2)

Run the code above in your browser using DataLab