Learn R Programming

simIC (version 0.1.0)

mle_int: Interval-Censored Maximum Likelihood Estimation

Description

Estimates distribution parameters by maximizing the interval-censored likelihood.

Usage

mle_int(left, right, dist)

Value

A list containing estimates, standard errors, log-likelihood, and convergence status

Arguments

left

Left bounds of censoring intervals

right

Right bounds of censoring intervals

dist

Distribution name (e.g. "weibull", "loglogistic", "EMV")

Examples

Run this code
# Simulate data from a log-logistic distribution
set.seed(123)
data <- simIC(n = 100, dist = "loglogistic", shape = 1.5, scale = 5, width = 2,
              study_start = 1, study_end = 8, uncensored_tol = 0.1)
# Fit the model
fit <- mle_int(left = data$left, right = data$right, dist = "loglogistic")
print(fit$estimates)
print(fit$logLik)
print(fit$converged)

Run the code above in your browser using DataLab