Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Plotting with cumuli and doing Kolmogorov-Smirnov


From   Morrison Hodges <hodge002@umn.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Plotting with cumuli and doing Kolmogorov-Smirnov
Date   Mon, 13 Aug 2012 21:44:43 -0500

I'm having some difficulty with a do-file for analyzing and plotting my data. I have 3 sets of data that I would like to plot the cumulative distribution function of, and use the Kolmogorov-Smirnow test to see if the 3 sets are distributed separately. The 3 sets are from 3 patient groups: a normal group, a group that had atrial fibrillation ablated in the laboratory, and a group with paroxysmal atrial fibrillation. (Atrial fibrillation is a common arrhythmia of the upper chamber of the heart. It is very bothersome to patients, and can cause strokes and death.) I want to get the CDF for a given variable in the 3 groups, and use K-S.

I can plot with 'distplot', but this apparantly does not allow the 'equal' option. I can plot with 'cumul', and with the 'stack' command I can plot all three CDFs. But I can't figure out how to use the K-S test, either before or after the plotting. I have searched the Statalist, but found nothing to help, really. Could you help me? 


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index