mdt-class: Class '"mdt"'

mdt-classR Documentation

Class "mdt"

Description

A class to store multiple decrement tables

Objects from the Class

Objects can be created by calls of the form new("mdt", name, table, ...). They store absolute decrements

Slots

name:

The name of the table

table:

A data frame containing at least the number of decrements

Methods

getDecrements

signature(object = "mdt"): return the name of decrements

getOmega

signature(object = "mdt"): maximum attainable age

initialize

signature(.Object = "mdt"): method to initialize the class

print

signature(x = "mdt"): tabulate absolute decrement rates

show

signature(object = "mdt"): show rates of decrement

coerce

signature(from = "mdt", to = "markovchainList"): coercing to markovchainList objects

coerce

signature(from = "mdt", to = "data.frame"): coercing to markovchainList objects

summary

signature(object = "mdt"): it returns summary information about the object

Note

Currently only decrements storage of the class is defined.

Author(s)

Giorgio Spedicato

References

Marcel Finan A Reading of the Theory of Life Contingency Models: A Preparation for Exam MLC/3L

See Also

lifetable

Examples

#shows the class definition
showClass("mdt")
#create a new table
tableDecr=data.frame(d1=c(150,160,160),d2=c(50,75,85))
newMdt<-new("mdt",name="testMDT",table=tableDecr)

spedygiorgio/lifecontingencies documentation built on Oct. 2, 2024, 5:14 a.m.