Given parameters of a elife
distribution, sampling window and
birth dates with excess lifetimes, sample new observations; excess lifetime
at c1
are sampled from an exponential distribution, whereas
the birth dates are sampled from a jittered histogram-based distribution
The new excess lifetime above the threshold are right-censored if they exceed
c2
.
samp2_elife(
n,
scale,
shape,
family = c("exp", "gp", "gomp", "gompmake", "weibull", "extgp", "gppiece",
"extweibull", "perks", "beard", "perksmake", "beardmake"),
xcal,
c1,
c2
)
list with new birthdates (xcal
), excess lifetime at c1
(ltrunc
),
excess lifetime above u
(dat
) and right-censoring indicator (rightcens
).
sample size
scale parameter(s)
shape parameter(s)
string; choice of parametric family
date at which individual reaches u
years
date, first day of the sampling frame
date, last day of the sampling frame