Power Analysis for T-tests

Computes power and required samples size for t-tests.
2.6K Downloads
Updated 19 Sep 2005

No License

The main function, TPOWER, will compute the power of a t-test given an effect size (d), sample size (N), and alpha. By giving N as an array the program can be used to plan sample size for an experiment. By setting the "PLOT" parameter to 1 the function calls plotpowfun, which plots the array N against power. By providing a desired power level, DESPWR, the program will also determine the minimum sample size needed to reach the desired power.

Cite As

Jason Augustyn (2026). Power Analysis for T-tests (https://www.mathworks.com/matlabcentral/fileexchange/8494-power-analysis-for-t-tests), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0