maximum likelihood approach to estimate parameters, and a Kolmogorov-Smirnov test for goodness-of-fit. When input data are converted (from rank-frequency to size-frequency) this program can also be used to test Zipf’s law.