## R code for constructing likelihood based confidence intervals for MTTF

The following R code may be used for constructing likelihood based intervals for the Mean Time To Failure (MTTF). These likelihood based intervals are also known as likelihood ratio bounds, or profile likelihood intervals.

The MTTF is defined as the mean of a failure-time distribution. The R code calculates the MTTF and its likelihood based confidence interval for the lognormal and Weibull failure-time distribution.