View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
SCOPE: kstest2 extended to allow censoring

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 19 KB File ID: #39012 Version: 1.0
image thumbnail

SCOPE: kstest2 extended to allow censoring


Rex Cheung (view profile)


Extends Matlab 2-sample Kolmogorov-Smirnov test to test "censored" survival data

| Watch this File

File Information

This download should include this code, a randomly generated excel data file for testing purposes, and the example output.
%This program expects to have at least three excel columns 1. follow up time and 2. failure indicator (1=failure has occured and 0=no failure has occurred and 3.predictor (1=present, 0=absent).
A randomly generated excel data file example is included for testing.

Type this at the command line to run: [h,p,k]= xlsSeerComputeSurvivalFuntionKSTest2('survivalPreditorsTestData.xls')

Required Products Statistics and Machine Learning Toolbox
MATLAB release MATLAB 7.14 (R2012a)
Other requirements Excel
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
13 Nov 2012 Rex Cheung

Rex Cheung (view profile)

Note that the two curves could also be normalized to the max value of each curve before applying the kstest2().

Comment only

Contact us