Matlab utilities:

discreteExpMix.m - fit mixtures of discrete exponential (geometric) distributions to inter-event data (via EM)

HolmBonferroni.m - implements a Holm-Bonferroni correction on a vector of p-values

olsline.m - total (orthogonal) least squares version of matlab's lsline (because sometimes there's error in all your variables)

renameFiles.m - replaces an offending string with a more palateable string everywhere it appears in file names within a folder

wienerFilter.m - a finite impulse response Wiener filter - useful for understanding how the state of some time series predicts the occurance of a binary event, controlling for autocorrelations in the time series

ztest2.m - a two sample proportion test


Feel free to share and adapt any of this, just let me know if you run into any problems.