View source: R/iclogcondist_LCMLE.R
ic_LCMLE | R Documentation |
This function computes the log-concave MLE of the cumulative distribution function for interval-censored data under log-concavity on the underlying distribution function based on an active set algorithm. The active set algorithm adjusts the knots set based on certain directional derivatives.
ic_LCMLE(
X,
initial = "LCM",
print = FALSE,
max_iter = 500,
tol_conv = 1e-07,
tol_conv_like = 1e-10,
tol_K = 1e-05
)
X |
A matrix with two columns, where each row represents an interval (L, R] for interval-censored data.
|
initial |
A character string specifying the method of obtaining an initial value ("LCM" or "MLE") for the estimation process. Default is |
print |
Logical. If |
max_iter |
An integer specifying the maximum number of iterations for the algorithm. Default is 500. |
tol_conv |
A numeric tolerance level for convergence based on the directional derivatives. Default is |
tol_conv_like |
A numeric tolerance level for convergence based on log-likelihood difference. Default is |
tol_K |
A numeric tolerance for checking if v^T phi is in K (constraint set) in active constraint set |
A list with the following components:
est |
A list containing |
knot_info |
A list with |
neg_log_likelihood |
Vector of negative log-likelihood values for each iteration of the algorithm. |
dir_derivs |
Vector of directional derivatives for each iteration. |
iter_no |
Integer representing the total number of iterations. |
weight |
Vector of weights corresponding to each interval in the data. |
X |
The original interval-censored data matrix input. |
# Example usage:
data(lgnm)
result <- ic_LCMLE(X = lgnm, initial = "LCM", print = TRUE, max_iter = 500)
print(result$est)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.