Description Usage Arguments Value References See Also Examples
summary
for objects of class lyl
summarizes Life Years Lost
at one specific age.
1 2 |
object |
An object of class |
decimals |
Number of decimals to be reported (default is 2). |
difference |
Parameter automatically created by the package. |
... |
Additional arguments affecting the summary produced. |
A table with the summary of the results.
Plana-Ripoll et al. lillies – An R package for the estimation of excess Life Years Lost among patients with a given disease or condition. PLoS ONE. 2020;15(3):e0228073.
lyl
for estimation of Life Years Lost at one specific age.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.