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
@@ -1,11 +1,11 @@
==============================================================================
POWER SIMULATION -- unmerge_d0_5
POWER SIMULATION -- unmerge_d0_5 [metric: # successes (count)]
==============================================================================
model: behavior ~ stim + day + stim:day + (1|rat) (success COUNT; day within-window)
model: behavior ~ stim + day + stim:day + (1|rat) (behavior = # successes (count); day within-window)
observed groups: stim n=3, control n=3 nrep=120, alpha=0.05
ground truth: stim:day=+5.36/day, rat SD=4.85, residual SD=10.70, days=6
ground truth: stim:day=+5.362/day, rat SD=4.853, residual SD=10.7, days=6
true stim:day interaction = +5.36 (100% of observed)
true stim:day interaction = +5.362 (100% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.35 | 0.73 <- observed
@@ -15,7 +15,7 @@ ground truth: stim:day=+5.36/day, rat SD=4.85, residual SD=10.70, days=6
16 | 1.00 | 1.00
24 | 1.00 | 1.00
true stim:day interaction = +2.68 (50% of observed)
true stim:day interaction = +2.681 (50% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.11 | 0.24 <- observed
@@ -25,5 +25,4 @@ ground truth: stim:day=+5.36/day, rat SD=4.85, residual SD=10.70, days=6
16 | 0.79 | 0.81
24 | 0.95 | 0.94
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.
Read the per-animal column as the honest power; LME is optimistic (obs-level DF).