Computes the log-likelihood for various parametric models suitable for threshold exceedances. If threshold is non-zero, then only right-censored, observed event time and interval censored data whose timing exceeds the thresholds are kept.
nll_ditrunc_elife(
par,
time,
ltrunc1 = NULL,
rtrunc1 = NULL,
ltrunc2 = NULL,
rtrunc2 = NULL,
family = c("exp", "gp", "gomp", "gompmake", "weibull", "extgp", "gppiece",
"extweibull", "perks", "beard", "perksmake", "beardmake"),
thresh = 0,
weights = rep(1, length(time)),
arguments = NULL,
...
)
log-likelihood value
vector of parameters
excess time of the event of follow-up time, depending on the value of event
lower truncation limit, default to NULL
upper truncation limit, default to NULL
lower truncation limit, default to NULL
upper truncation limit, default to NULL
string; choice of parametric family, either exponential (exp
), Weibull (weibull
), generalized Pareto (gp
), Gompertz (gomp
), Gompertz-Makeham (gompmake
) or extended generalized Pareto (extgp
).
vector of thresholds
weights for observations
a named list specifying default arguments of the function that are common to all elife
calls
additional arguments for optimization, currently ignored.