Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Compounded Linear Failure Rate Distribution (CLFRD)

R code for the paper:

"Compounded Linear Failure Rate Distribution: Properties, Simulation and Analysis"

Authors: Suchismita Das, Akul Ameya, Cahyani Karunia Putri


Overview

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

Repository Structure

clfrd_main.R         # Main R script with all analyses

Key Features

The R code implements:

1. Distribution Functions

  • 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)

2. Data Analysis

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:

Compounded Linear Failure Rate Distribution (CLFRD)

Short R implementation for the paper "Compounded Linear Failure Rate Distribution: Properties, Simulation and Analysis".

Usage (quick):

  1. Open R and source the main script:
source("clfrd_main.R")
  1. The script defines convenience functions. Common calls:
  • probden("decreasing") or probden("unimodal") # PDF plots
  • hazard("condition4") (or condition1..condition5) # hazard plots
  • tables() # compute MRL and MIT tables
  • analysis() # run MLEs, goodness-of-fit and comparisons
  • sim() # Monte Carlo simulations

Datasets included (switch in vals()):

  • aarset — Aarset (1987), 50 devices
  • appliances — Lawless (1982), 36 appliances
  • mathematics — 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.

Output will be saved to "clfrd_analysis.txt" and "survival_plot.png"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages