Files
experiments-database/analysis/matlab/variations/naive_boxa_d6_10/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 -- naive_boxa_d6_10
==============================================================================
model: behavior ~ stim + day + stim:day + (1|rat) (success COUNT; day within-window)
observed groups: stim n=3, control n=7 nrep=120, alpha=0.05
ground truth: stim:day=-1.62/day, rat SD=11.24, residual SD=10.14, days=5
true stim:day interaction = -1.62 (100% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.05 | 0.08 <- observed
5 | 0.06 | 0.07
8 | 0.17 | 0.21
12 | 0.26 | 0.27
16 | 0.28 | 0.30
24 | 0.41 | 0.45
true stim:day interaction = -0.81 (50% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.03 | 0.08 <- observed
5 | 0.07 | 0.07
8 | 0.05 | 0.10
12 | 0.07 | 0.07
16 | 0.11 | 0.09
24 | 0.12 | 0.13
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.