GPL common lisp statistics software
Dear Lispers,
I had to teach biostatistics last fall, so to handle generating and
grading problem sets, I wrote a bunch of statistical code in common
lisp. A bit of the code is derrivative of CLASP, much of it is new.
I've cleaned it up and released it under GPL. It's available on the
new BioLisp site (check it out! www.biolisp.org) and on my home page,
compbio.uchsc.edu/Hunter. I've included the list of functions
provided below.
I welcome comments, bug reports, and statements of what you've used it
for.
Larry
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Functions provided:
;;;
;;; Descriptive statistics
;;; Mean, median, mode, geometric mean, range, percentile, variance,
;;; standard-deviation (sd), coefficient-of-variation,
;;; standard-error-of-the-mean
;;;
;;; Distributional functions
;;; Poisson & Binomial
;;; binomial-probability, binomial-cumulative-probability,
;;; binomial-ge-probability, poisson-probability,
;;; poisson-cumulative-probability, poisson-ge-probability, Normal
;;; normal-pdf, convert-to-standard-normal, phi, z, t-distribution,
;;; chi-square, chi-square-cdf
;;;
;;; Confidence Intervals
;;; binomial-probability-ci, poisson-mu-ci, normal-mean-ci,
;;; normal-mean-ci-on-sequences, normal-variance-ci,
;;; normal-variance-ci-on-sequence, normal-sd-ci
;;;
;;; Hypothesis tests (parametric)
;;; z-test, z-test-on-sequence, t-test-one-sample,
;;; t-test-one-sample-on-sequence, t-test-paired,
;;; t-test-paired-on-sequences, t-test-two-sample,
;;; t-test-two-sample-on-sequences, chi-square-test-one-sample, f-test,
;;; binomial-test-one-sample, binomial-test-two-sample, fisher-exact-test,
;;; mcnemars-test, poisson-test-one-sample
;;;
;;; Hypothesis tests (non-parametric)
;;; sign-test, sign-test-on-sequence, wilcoxon-signed-rank-test,
;;; chi-square-test-rxc, chi-square-test-for-trend
;;; Sample size estimates
;;; t-test-one-sample-sse, t-test-two-sample-sse
;;; t-test-paired-sse, binomial-test-one-sample-sse,
;;; binomial-test-two-sample-sse,
;;; binomial-test-paired-sse, correlation-sse
;;; Correlation and Regression
;;; linear-regression, correlation-coefficient,
;;; correlation-test-two-sample, spearman-rank-correlation
;;; Significance test functions
;;; t-significance, f-significance (chi square significance is calculated
;;; from chi-square-cdf in various ways depending on the problem).
;;; Utilities
;;; random-sample, random-pick, random-normal, bin-and-count,
;;; fishers-z-transform, mean-sd-n, square, choose, permutations,
;;; round-float, test-variables
;;; These abreviations used in function and variable names:
;;; ci = confidence interval
;;; cdf = cumulative density function
;;; ge = greater than or equal to
;;; le = less than or equal to
;;; pdf = probability density function
;;; sd = standard deviation
;;; rxc = rows by columns
;;; sse = sample size estimate
--
Lawrence Hunter, Ph.D.
Director, Center for Computational Pharmacology
Associate Professor of Pharmacology, PMB & Computer Science
URL: http://www.*-*-*.com/
phone (303) 315-1094 UCHSC, Campus Box C236
fax (303) 315-1098 School of Medicine rm 2817b
cell (303) 324-0355 4200 E. 9th Ave.