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

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-24 02:32:51 -04:00
parent 1009f263e8
commit 0a438a4649
72 changed files with 1873 additions and 895 deletions
@@ -1,11 +1,11 @@
==============================================================================
POWER SIMULATION -- boxa_a2_d0_10
POWER SIMULATION -- boxa_a2_d0_10 [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=4 nrep=120, alpha=0.05
ground truth: stim:day=+1.20/day, rat SD=0.00, residual SD=13.47, days=11
ground truth: stim:day=+1.198/day, rat SD=0, residual SD=13.47, days=11
true stim:day interaction = +1.20 (100% of observed)
true stim:day interaction = +1.198 (100% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.07 | 0.17 <- observed
@@ -15,7 +15,7 @@ ground truth: stim:day=+1.20/day, rat SD=0.00, residual SD=13.47, days=11
16 | 0.72 | 0.72
24 | 0.88 | 0.88
true stim:day interaction = +0.60 (50% of observed)
true stim:day interaction = +0.5992 (50% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.07 | 0.08 <- observed
@@ -25,5 +25,4 @@ ground truth: stim:day=+1.20/day, rat SD=0.00, residual SD=13.47, days=11
16 | 0.29 | 0.30
24 | 0.31 | 0.33
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).