I have a data set for a 2 (between) x 3 (within) x 3 (within) x 3 (within) mixed ANOVA. I need to find the sample size necessary to find a significant result for one of the 3-way interactions including the between subjects factor and two of the within subjects factors. I'm trying to figure out the easiest/best way to simulate the addition of additional participants based on the current data. I currently have 24 subjects total (12 in each of the between subjects groups). I'm also familiar with R, MATLAB and Python. I've found some similar questions on the site but none of them seem to be trying to model the simulation based on existing data.