R code for the paper:
"Compounded Linear Failure Rate Distribution: Properties, Simulation and Analysis"
Authors: Suchismita Das, Akul Ameya, Cahyani Karunia Putri
This repository contains the R implementation for the Compounded Linear Failure Rate Distribution (CLFRD), a flexible three-parameter lifetime model designed to capture complex failure patterns in reliability engineering and survival analysis.
The CLFRD extends the classical Linear Failure Rate Distribution (LFRD) through a Poisson compounding framework, enabling the model to represent:
- Increasing hazard rates
- Bathtub-shaped hazard patterns
- Inverse bathtub-shaped hazard patterns
clfrd_main.R # Main R script with all analyses
The R code implements:
- CLFRD (Compounded Linear Failure Rate Distribution) - Proposed model
- LFRD (Linear Failure Rate Distribution)
- RD (Rayleigh Distribution)
- GRD (Generalized Rayleigh Distribution)
- ED (Exponential Distribution)
- GED (Generalized Exponential Distribution)
Three real-world datasets analyzed in the paper:
- Aarset (1987): Lifetime of 50 devices
- Lawless (1982): Failure times of 36 appliances
- Gupta (2009): Marks of 48 students in Mathematics
For each dataset, the code performs:
Short R implementation for the paper "Compounded Linear Failure Rate Distribution: Properties, Simulation and Analysis".
Usage (quick):
- Open R and source the main script:
source("clfrd_main.R")- The script defines convenience functions. Common calls:
probden("decreasing")orprobden("unimodal")# PDF plotshazard("condition4")(or condition1..condition5) # hazard plotstables()# compute MRL and MIT tablesanalysis()# run MLEs, goodness-of-fit and comparisonssim()# Monte Carlo simulations
Datasets included (switch in vals()):
aarset— Aarset (1987), 50 devicesappliances— Lawless (1982), 36 appliancesmathematics— Gupta (2009), 48 students
Required packages:
install.packages(c("ggplot2","gridExtra","numDeriv","lamW","goftest"))Outputs (created by functions above):
clfrd_analysis.txt,clfrd_tables.txt,clfrd_simulation.txt,survival_plot.png, and other figure files
Contact:
License: academic/research use; please cite the paper when using this code.