Turnbull EM algorithm (low storage implementation)
.turnbull_em_dtrunc(
tsets,
lcens,
rcens,
ltrunc,
rtrunc,
weights,
cens = TRUE,
trunc = TRUE,
tol = 1e-12,
zerotol = 1e-10,
maxiter = 100000L
)
a list with the probabilities and the standard errors
Turnbull's sets
numeric vector of left censoring
numeric vector of right censoring
numeric vector of left truncation
numeric vector of right truncation
vector of weights for observations
logical; if FALSE
, then censUpp = censLow
and a particular update can be avoided in the EM algorithm
tolerance level for terminating the EM algorithm
maximum number of iteration for the EM algorithm