MATLAB: Are there functions in the Statistics Toolbox for survival analysis or multinomial linear models

Statistics and Machine Learning Toolbox

I would like to know if there are functions in the Statistics Toolbox for survival analysis or multinomial linear models.

Best Answer

There are several functions in the Statistics Toolbox for use with survival analysis. To get started, take a look at the demos "Analyzing survival or reliability data" for an overview, and "Fitting custom univariate distributions, part 2" for some more advanced information. You can find both demos under "Fitting Distributions to Data" in the Statistics Toolbox demos.
Functions useful with survival analysis include the following functions that allow data to be censored:
DFITTOOL - Distribution fitting tool
ECDF - Empirical cumulative distribution function, computes the Kaplan-Meier estimate of the cumulative distribution function
ECDFHIST - Histogram from ecdf output
EVFIT, EXPFIT, GAMFIT, LOGNFIT, MLE, MLECOV, NORMFIT, WBLFIT
- Distribution parameter estimation
KSDENSITY - Kernel-smoothing density estimate
PROBPLOT - Probability plot
There is a GLMFIT function for fitting generalized linear models, including ones with a binomial response variable.
As of MATLAB (7.3) R2006b, the function MNRFIT performs multinomial logistic regression.
There are various models used for multinomial response variables when the response categories are ordered. Some of these can be fit as a series of binomial fits. For example, one model calls for a series of binomial fits for ordered category j+1 or higher, given that you are in category j or higher. These types of models can be fit using the GLMFIT function.