Analysis of Lifetime Data
In lifetime data analysis, the outcome of interest is the time until an event occurs. Some common time-to-event examples are the:
Time until infection, recurrence of a disease, or recovery in health sciences
Duration of unemployment or a recession in economics
Time until the failure of a machine part or the lifetime of light bulbs in engineering
Survival analysis is a set of statistical techniques that are well suited to data sets that contain time-to-event information for a range of categorical or noncategorical predictor values, such as hospital readmission times for patients of various ages who are smokers or nonsmokers. In many cases, some of the data is censored, meaning that an event occurred before the start of the study or has not yet occurred, or the event time is only known within a finite interval.
Accelerated lifetime analysis provides a way to predict the lifetimes of industrial components when you cannot directly obtain time-to-failure data under normal operating conditions. For example, the mean lifetime of a light bulb might be much longer than the feasible timescale for an experimental study. By gathering failure time data on a component when it is subjected to abnormal stressor levels, such as high or low ambient temperature or humidity, you can model the component's lifetime characteristics and determine quantities such as the failure rate and mean failure time under normal operating conditions.
To perform survival analysis:
Fit a model to your data. Use one or more of the functions listed on this page under Lifetime Data Analysis or Cox Proportional Hazards Models.
Plot or otherwise analyze the fitted model using the methods in the examples listed on this page under Topics, or using Cox Proportional Hazards Models functions. The
fitcoxfunction provides an object-oriented way to fit a Cox proportional hazards model. The resultingCoxModelobject contains many statistics and methods for analysis.coxphfitis an older function for fitting Cox models that also enables code generation.
To perform accelerated lifetime analysis:
Fit a model to your data by creating an
AcceleratedLifeModelobject using thefitacclifefunction. This function allows you to specify the type of life stress model and life distribution that best suits your data.Use one or more of the methods listed on this page under Accelerated Lifetime Analysis to compute mean failure times, distribution functions, and failure probabilities at specific stressor levels, and to create plots.
Functions
Objects
CoxModel | Cox proportional hazards model |
AcceleratedLifeModel | Accelerated life model for lifetime analysis (Since R2026a) |
Topics
- What Is Survival Analysis?
Learn about censoring, survival data, and the survivor and hazard functions.
- Survivor Functions for Two Groups
Find the empirical survivor functions and the parametric survivor functions using the Burr type XII distribution fit on data for two groups.
- Hazard and Survivor Functions for Different Groups
Estimate and plot the cumulative hazard and survivor functions for different groups.
- Kaplan-Meier Method
Estimate the empirical hazard, survivor, and cumulative distribution functions.
- Cox Proportional Hazards Model
Adjust survival rate estimates to quantify the effect of predictor variables.
- Cox Proportional Hazards Model Object
Create data for a Cox model with three stratification levels, then fit and analyze the resulting model.
- Cox Proportional Hazards Model for Censored Data
Create a Cox proportional hazards model, and assess the significance of the predictor variables.
- Cox Proportional Hazards Model with Time-Dependent Covariates
Convert survival data to counting process form, and then construct a Cox proportional hazards model with time-dependent covariates.
- Analyzing Survival or Reliability Data
Analyze lifetime data with censoring by modeling the time to failure of a throttle from an automobile fuel injection system.
- What Is Accelerated Life Analysis?
Learn about accelerated life testing, censoring, life distributions, and life stress models.
- Perform Accelerated Life Model Analysis
Perform an accelerated life analysis on failure time data of a machine part that is operated at six different temperatures.