| mdt-class | R Documentation |
"mdt"A class to store multiple decrement tables
Objects can be created by calls of the form new("mdt", name, table,
bottomCompletionSurvival, ...). They store absolute decrements.
bottomCompletionSurvival (default 0.99) is the one-year
survival ratio used to synthetically back-fill ages below the lowest age
supplied in table; it does not affect rows for ages actually
supplied.
name:The name of the table
table:A data frame containing at least the number of decrements
signature(object = "mdt"): return the name of decrements
signature(object = "mdt"): maximum attainable age
signature(.Object = "mdt"): method to initialize the class
signature(x = "mdt"): tabulate absolute decrement rates
signature(object = "mdt"): show rates of decrement
signature(from = "mdt", to = "markovchainList"): coercing to markovchainList objects; available only when the optional markovchain package is installed
signature(from = "mdt", to = "data.frame"): coercing to data.frame
signature(object = "mdt"): it returns summary information about the object
Currently only decrements storage of the class is defined.
Giorgio Alfredo Spedicato
Marcel Finan A Reading of the Theory of Life Contingency Models: A Preparation for Exam MLC/3L
lifetable
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.