analysis(matlab): rate + count outputs, variation batch 5

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-24 02:32:53 -04:00
parent 1606eb698b
commit fd40b6fb54
48 changed files with 1247 additions and 595 deletions
@@ -0,0 +1,28 @@
==============================================================================
POWER SIMULATION -- unmerge_d6_13 [metric: success RATE]
==============================================================================
model: behavior ~ stim + day + stim:day + (1|rat) (behavior = success RATE; day within-window)
observed groups: stim n=3, control n=2 nrep=120, alpha=0.05
ground truth: stim:day=+0.01216/day, rat SD=0.04815, residual SD=0.05028, days=8
true stim:day interaction = +0.01216 (100% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.32 | 0.47 <- observed
5 | 0.63 | 0.76
8 | 0.84 | 0.88
12 | 0.91 | 0.96
16 | 1.00 | 1.00
24 | 1.00 | 1.00
true stim:day interaction = +0.006078 (50% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.07 | 0.17 <- observed
5 | 0.23 | 0.28
8 | 0.27 | 0.35
12 | 0.39 | 0.40
16 | 0.48 | 0.58
24 | 0.83 | 0.84
Read the per-animal column as the honest power; LME is optimistic (obs-level DF).