Mantel-Haenszel test
Version 1.0.0.0 (1,72 KB) von
Peter Ferjancic
Mantel-Haenszel comparison of survival curves
this function performs the Mantel-Haenszel test comparing two survival curves and returns the p-value. It takes in the total number of patients, a list of all event times (including censoring and loss) and a binary array the same size specifying which of the events happened due to loss/censoring.
It also plots the survival curves if you have the Statistics and Machine Learning Toolbox (otherwise comment out lines 66-72).
See attached example files for how to use.
Zitieren als
Peter Ferjancic (2026). Mantel-Haenszel test (https://de.mathworks.com/matlabcentral/fileexchange/62076-mantel-haenszel-test), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2016b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Industrial Statistics finden Sie in Help Center und MATLAB Answers
Tags
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0.0 |
