slatkin power analysis, ported from wikispaces