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
@@ -1,11 +1,11 @@
==============================================================================
POWER SIMULATION -- right_only_d0_13
POWER SIMULATION -- right_only_d0_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=4, control n=3 nrep=120, alpha=0.05
ground truth: stim:day=+1.70/day, rat SD=0.00, residual SD=14.12, days=14
ground truth: stim:day=+1.7/day, rat SD=3.135e-15, residual SD=14.12, days=14
true stim:day interaction = +1.70 (100% of observed)
true stim:day interaction = +1.7 (100% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.28 | 0.67 <- observed
@@ -15,7 +15,7 @@ ground truth: stim:day=+1.70/day, rat SD=0.00, residual SD=14.12, days=14
16 | 1.00 | 1.00
24 | 1.00 | 1.00
true stim:day interaction = +0.85 (50% of observed)
true stim:day interaction = +0.8501 (50% of observed)
N/group | per-animal power | LME power
------------------------------------------
3 | 0.15 | 0.24 <- observed
@@ -25,5 +25,4 @@ ground truth: stim:day=+1.70/day, rat SD=0.00, residual SD=14.12, days=14
16 | 0.75 | 0.82
24 | 0.87 | 0.85
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).