# Python-asurv

Implementation in Python of some of the statistical methods
provided by "asurv", the survival analysis software.

The original asurv software can be found at:
http://www.astrostatistics.psu.edu/statcodes/

At the moment the only method implemented is the Schmitt binning
method (Schmitt, J. H. M. M. 1985)
and probably, this method will be the only one implemented. If you are interested in
a regression method that can handle censored data in both axis without the problems
of the Schmitt method (arbitrary binning, statistical properties not known, problems with small samples)
you should have a look to the Akritas-Thiel-Sen method. It is explained
in the book "Nondetects And Data Analysis: Statistics for Censored Environmental Data"
(Wiley-Interscience, 2005, ISBN: 9780471671732).
There is an implemetation of the method in
R in a package called
NADA.
The method can be interfaced from Python using
RPy.

Some links:

## Dependencies

Python-asurv depends on numpy.

## Download

Python-asurv v0.1

## Install

To install python-asurv enter:
python setup.py install

## Acknowledgements

If you use this software for your work you should cite one of
the following articles explaining the method used and the
software (ASURV) in which this software is based:

- Feigelson, E. D. and Nelson, P. I. "Statistical Methods for
Astronomical Data with Upper Limits: I. Univariate Distributions",
Astrophyscal Journal 293, 192-206, 1985.
- Isobe, T., Feigelson, E. D., and Nelson, P. I. "Statistical Methods
for Astronomical Data with Upper Limits: II. Correlation and Regression",
Astrophysical Journal, 306, 490-507, 1986.
- LaValley, M., Isobe, T. and Feigelson, E.D. "ASURV", Bulletin
American Astronomical Society (Software Reports), 22, 917-918, 1990.