r_dtrunc_elife | R Documentation |
Sample observations from an interval truncated excess lifetime distribution
r_dtrunc_elife(
n,
scale,
rate,
shape,
lower,
upper,
family = c("exp", "gp", "gomp", "gompmake", "weibull", "extgp", "gppiece",
"extweibull", "perks", "beard", "perksmake", "beardmake")
)
n |
sample size |
scale |
scale parameter(s) |
rate |
rate parameter(s) |
shape |
shape parameter(s) |
lower |
vector of lower bounds |
upper |
vector of upper bounds |
family |
string; choice of parametric family |
a vector of n
observations
n <- 100L
# the lower and upper bound are either scalar,
# or else vectors of length n
r_dtrunc_elife(n = n, scale = 1, shape = -0.1,
lower = pmax(0, runif(n, -0.5, 1)),
upper = runif(n, 6, 10),
family = "gp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.