summary.lyl: Summarize Life Years Lost at one specific age

Description Usage Arguments Value References See Also Examples

View source: R/lyl_summary.R

Description

summary for objects of class lyl summarizes Life Years Lost at one specific age.

Usage

1
2
## S3 method for class 'lyl'
summary(object, decimals = 2, difference = FALSE, ...)

Arguments

object

An object of class lyl (obtained with function lyl).

decimals

Number of decimals to be reported (default is 2).

difference

Parameter automatically created by the package.

...

Additional arguments affecting the summary produced.

Value

A table with the summary of the results.

References

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Load simulated data as example
data(simu_data)

# Estimate remaining life expectancy and Life Years
# Lost after age 45 years and before age 95 years
lyl_estimation <- lyl(data = simu_data, t = age_death, status = death,
                      age_specific = 45, tau = 95)

# Summarize and plot the data
summary(lyl_estimation)

lillies documentation built on Feb. 17, 2021, 1:07 a.m.

Related to summary.lyl in lillies...