qxt.prime.fromMdt: Return Associated single decrement from absolute rate of...

Description Usage Arguments Value Functions Examples

View source: R/8_mdtFunctions.R

Description

Return Associated single decrement from absolute rate of decrement

Usage

1
2
3
qxt.prime.fromMdt(object, x, t = 1, decrement)

qxt.fromQxprime(qx.prime, other.qx.prime, t = 1)

Arguments

object

a mdj object

x

age

t

period (default 1)

decrement

type (necessary)

qx.prime

single ASDT decrement of which corresponding decrement is desired

other.qx.prime

ASDT decrements other than qx.prime

Value

a single value (AST)

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#Creating the valdez mdf

valdezDf<-data.frame(
x=c(50:54),
lx=c(4832555,4821937,4810206,4797185,4782737),
hearth=c(5168, 5363, 5618, 5929, 6277),
accidents=c(1157, 1206, 1443, 1679,2152),
other=c(4293,5162,5960,6840,7631))
valdezMdt<-new("mdt",name="ValdezExample",table=valdezDf) 

qxt.prime.fromMdt(object=valdezMdt,x=53,decrement="other")

#Finan example 67.2

qxt.fromQxprime(qx.prime = 0.01,other.qx.prime = c(0.03,0.06))

spedygiorgio/lifecontingencies documentation built on March 21, 2021, 5:36 a.m.