Learn R Programming

lifecontingencies (version 0.0.2)

pxt: Function to return conditional survival probability.

Description

Given a lifetable or actuariatable object, this function return the conditional survival probability.

Usage

pxt(object, x, t)

Arguments

object
A lifetable or actuarialtable object.
x
Age
t
Time span, even fractiona.

Value

  • A numeric value representing survival 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

If t is fractional, linear interpolation is used among life tables.

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
	pxt(object=IPS55Mlt, x=90, t=2)

Run the code above in your browser using DataLab