This is the matlab code to run the simulation of subsampling and power analyses described in our paper:
Cremers, Henk R, Tor D Wager, and Tal Yarkoni. “The Relation Between Statistical Power and Inference in fMRI”.PLoS ONE 12, no. 11 (2017): e0184923. doi:10.1371/journal.pone.0184923.
See simsam_overview.m for an outline of the analyses