Determine parameters to obtain target power.
Power of test (1 minus Type II error probability)
Significance level (Type I error probability)
mean of treatment A
mean of treatment B
standard deviation of treatment A
standard deviation of treatment B
the correlation between A and B within each subject
Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Hillsdale,NJ: Lawrence Erlbaum.