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

Description Usage Arguments Value References See Also Examples

View source: R/lyl_summary_aggregated.R

Description

summary for objects of class lyl_aggregated summarizes Life Years Lost.

Usage

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

Arguments

object

An object of class lyl_aggregated (obtained with function lyl_aggregated or lyl_aggregated_range).

decimals

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

...

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
11
12
# Load simulated data as example
data(aggreg_data)
data(pop_ref)

# Estimate remaining life expectancy and Life Years
# Lost after age 70 years and before age 90 years
lyl_summary_data70 <- lyl_aggregated(data = aggreg_data, age = age, rates = rate,
                                     data0 = pop_ref, age0 = age, surv0 = survival,
                                     age_specific = 70, tau = 90)

# Summarize and plot the data
summary(lyl_summary_data70)

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