Files
experiments-database/analysis/matlab/variations/unmerge_d6_13/power_result.txt
T
Experiments DB Dev bb5e2d88c0 analysis(matlab): add per-variation power simulation (powersim.m + power_result.txt)
Add variation_power.m (self-contained Monte-Carlo power for the paper's
stim x day interaction, using each folder's own data as ground truth; scores
per-animal cluster-honest power + LME power across N=[3..24] and effect
multipliers 1/0.5) and make_variation_power.m, which drops powersim.m into
every variations/<name>/ folder and runs it, writing power_result.txt beside
the existing data.csv/analyze.m/result.txt. Named powersim (not power) to
avoid shadowing the MATLAB builtin. All 28 folders processed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-23 13:57:25 -04:00

30 lines
1.3 KiB
Plaintext

==============================================================================
POWER SIMULATION -- unmerge_d6_13
==============================================================================
model: behavior ~ stim + day + stim:day + (1|rat) (success COUNT; day within-window)
observed groups: stim n=3, control n=2 nrep=120, alpha=0.05
ground truth: stim:day=+2.27/day, rat SD=7.12, residual SD=7.73, days=8
true stim:day interaction = +2.27 (100% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.46 | 0.62 <- observed
5 | 0.77 | 0.90
8 | 0.95 | 0.99
12 | 1.00 | 1.00
16 | 1.00 | 1.00
24 | 1.00 | 1.00
true stim:day interaction = +1.13 (50% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.12 | 0.20 <- observed
5 | 0.27 | 0.38
8 | 0.41 | 0.47
12 | 0.54 | 0.62
16 | 0.72 | 0.74
24 | 0.91 | 0.93
Read the per-animal column as the honest power. At the observed N this study
is typically underpowered; per-animal power reaches ~0.8 only at larger N.