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

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-24 02:32:52 -04:00
parent 0a438a4649
commit 6ba21a1a35
72 changed files with 1874 additions and 896 deletions
@@ -1,11 +1,11 @@
==============================================================================
POWER SIMULATION -- naive_a2_d6_13
POWER SIMULATION -- naive_a2_d6_13 [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=6 nrep=120, alpha=0.05
ground truth: stim:day=+1.16/day, rat SD=9.76, residual SD=12.03, days=8
ground truth: stim:day=+1.155/day, rat SD=9.759, residual SD=12.03, days=8
true stim:day interaction = +1.16 (100% of observed)
true stim:day interaction = +1.155 (100% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.08 | 0.15 <- observed
@@ -15,7 +15,7 @@ ground truth: stim:day=+1.16/day, rat SD=9.76, residual SD=12.03, days=8
16 | 0.42 | 0.47
24 | 0.58 | 0.59
true stim:day interaction = +0.58 (50% of observed)
true stim:day interaction = +0.5776 (50% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.06 | 0.09 <- observed
@@ -25,5 +25,4 @@ ground truth: stim:day=+1.16/day, rat SD=9.76, residual SD=12.03, days=8
16 | 0.12 | 0.12
24 | 0.21 | 0.23
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).