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

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 0e16690c8f
commit 1606eb698b
72 changed files with 1869 additions and 891 deletions
@@ -0,0 +1,28 @@
==============================================================================
POWER SIMULATION -- unmerge_d0_10 [metric: success RATE]
==============================================================================
model: behavior ~ stim + day + stim:day + (1|rat) (behavior = success RATE; day within-window)
observed groups: stim n=3, control n=3 nrep=120, alpha=0.05
ground truth: stim:day=+0.01218/day, rat SD=0.04284, residual SD=0.08704, days=11
true stim:day interaction = +0.01218 (100% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.20 | 0.36 <- observed
5 | 0.51 | 0.64
8 | 0.77 | 0.79
12 | 0.96 | 0.97
16 | 0.97 | 0.97
24 | 1.00 | 1.00
true stim:day interaction = +0.006089 (50% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.12 | 0.11 <- observed
5 | 0.11 | 0.18
8 | 0.28 | 0.31
12 | 0.36 | 0.41
16 | 0.58 | 0.62
24 | 0.71 | 0.72
Read the per-animal column as the honest power; LME is optimistic (obs-level DF).