analysis(matlab): rate-variant + vertical x-axis (templates, generators, summary)

Refactor variation_{analyze,power,logpower,plot}.m to run both count and rate
metrics; plot x-axis labels vertical (xtickangle 90). SUMMARY.csv gains
interaction_p_rate / interaction_p_rs_rate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-24 02:32:43 -04:00
parent a2a812acc8
commit 1009f263e8
6 changed files with 190 additions and 155 deletions
+21 -21
View File
@@ -1,21 +1,21 @@
variation,grouping,window,nRats,nObs,covEqual,interaction_p,interaction_p_satt,interaction_p_rs,interaction_est,stim_p,day_p
unmerge_d0_10,unmerge,d0_10,6,61,1,0.142831730250263,0.142797566084653,0.247946685371652,1.55766564374789,0.497389134925754,2.83166776054496e-14
unmerge_d0_13,unmerge,d0_13,6,70,1,0.1037612192755,0.103490077847449,0.222686826261486,1.54665472676189,0.343602740986316,3.0346358823857e-13
unmerge_d0_5,unmerge,d0_5,6,36,1,0.015149263054839,0.0154996899553134,0.133145634512884,5.36190476190475,0.688839435920596,1.57055423419133e-07
unmerge_d6_10,unmerge,d6_10,5,25,1,0.485980598616448,0.486366669144796,0.554919025308352,1.76666666666666,0.0975215172907211,0.227259314093653
unmerge_d6_13,unmerge,d6_13,5,34,1,0.0971009786566259,0.0970128901807668,0.13816578257917,2.26696773140328,0.101395665857404,0.117493504965036
right_only_d0_10,right_only,d0_10,7,72,1,0.072180139606096,0.0721794737454714,0.124574209202325,1.73004431141938,0.715879551990348,5.94289273347193e-16
right_only_d0_13,right_only,d0_13,7,84,1,0.0480416099228058,0.0478799998667326,0.102857124294903,1.7001712792199,0.528517264593511,1.17078898575779e-14
right_only_d0_5,right_only,d0_5,7,42,1,0.00589730538358453,0.00612750828678172,0.0876259332262465,5.30714285714286,0.469556667463413,1.45827052706827e-08
right_only_d6_10,right_only,d6_10,6,30,1,0.288979620167748,0.289798539517805,0.378365014630273,2.425,0.119238243812818,0.200957769624237
right_only_d6_13,right_only,d6_13,6,42,1,0.0258497485171371,0.0259134063416617,0.0369743190514673,2.75792254325755,0.109557181635453,0.0976080018855909
naive_a2_d0_10,naive_a2,d0_10,10,104,1,0.125891264174292,0.126071775330177,0.30932733005532,1.43371876298297,0.141836960529428,1.59796354184479e-27
naive_a2_d0_13,naive_a2,d0_13,10,124,1,0.0397967517409217,0.0398599319703312,0.0578149015961064,1.61366204723722,0.153633906173184,2.5469330031931e-28
naive_a2_d0_5,naive_a2,d0_5,10,59,1,0.00107331575782455,0.00115218904921896,0.028152310883297,6.96223661591522,0.960550975833492,1.1254222201539e-09
naive_a2_d6_10,naive_a2,d6_10,9,45,1,0.449922139297732,0.450525162691322,0.522263670801849,-1.8,0.00929038977362001,8.02730473236241e-05
naive_a2_d6_13,naive_a2,d6_13,9,65,1,0.439759713746994,0.439915577313227,0.563543413702517,1.15527349799111,0.0165675905421826,0.00123453301903328
naive_boxa_d0_10,naive_boxa,d0_10,11,115,1,0.194116831474294,0.194284662755081,0.383551190839722,1.17792772470162,0.124842156542362,1.7431506758907e-32
naive_boxa_d0_13,naive_boxa,d0_13,11,138,1,0.0848056366333164,0.0848864932608599,0.140324990567599,1.30637615965008,0.140502409490992,1.21292542612342e-34
naive_boxa_d0_5,naive_boxa,d0_5,11,65,1,0.00254470765200637,0.00267934065308424,0.0356145839564805,6.40329932104724,0.881419104187055,2.50618640106882e-11
naive_boxa_d6_10,naive_boxa,d6_10,10,50,1,0.46817073850354,0.468724498567948,0.534407300553877,-1.61904761904762,0.014689379915428,1.87688778586107e-05
naive_boxa_d6_13,naive_boxa,d6_13,10,73,1,0.530807487326757,0.530942127564996,0.696589180707779,0.873689202983884,0.0303916991304334,6.44631091768978e-05
variation,grouping,window,nRats,nObs,covEqual,interaction_p,interaction_p_satt,interaction_p_rs,interaction_est,stim_p,day_p,interaction_p_rate,interaction_p_rs_rate
unmerge_d0_10,unmerge,d0_10,6,61,1,0.142831730250263,0.142797566084653,0.247946685371652,1.55766564374789,0.497389134925754,2.83166776054496e-14,0.101273272943887,0.113635949369058
unmerge_d0_13,unmerge,d0_13,6,70,1,0.1037612192755,0.103490077847449,0.222686826261486,1.54665472676189,0.343602740986316,3.0346358823857e-13,0.0729395844508811,0.0810848229835278
unmerge_d0_5,unmerge,d0_5,6,36,1,0.015149263054839,0.0154996899553134,0.133145634512884,5.36190476190475,0.688839435920596,1.57055423419133e-07,0.00312728156805176,0.0378990615877136
unmerge_d6_10,unmerge,d6_10,5,25,1,0.485980598616448,0.486366669144796,0.554919025308352,1.76666666666666,0.0975215172907211,0.227259314093653,0.889539569780549,0.921910870826714
unmerge_d6_13,unmerge,d6_13,5,34,1,0.0971009786566259,0.0970128901807668,0.13816578257917,2.26696773140328,0.101395665857404,0.117493504965036,0.168410922832656,0.874930263016369
right_only_d0_10,right_only,d0_10,7,72,1,0.072180139606096,0.0721794737454714,0.124574209202325,1.73004431141938,0.715879551990348,5.94289273347193e-16,0.0406170660292579,0.0396836748954027
right_only_d0_13,right_only,d0_13,7,84,1,0.0480416099228058,0.0478799998667326,0.102857124294903,1.7001712792199,0.528517264593511,1.17078898575779e-14,0.0182494380376794,0.01709229589027
right_only_d0_5,right_only,d0_5,7,42,1,0.00589730538358453,0.00612750828678172,0.0876259332262465,5.30714285714286,0.469556667463413,1.45827052706827e-08,0.000673572060461354,0.0180977446376148
right_only_d6_10,right_only,d6_10,6,30,1,0.288979620167748,0.289798539517805,0.378365014630273,2.425,0.119238243812818,0.200957769624237,0.514255837007347,0.649543797033249
right_only_d6_13,right_only,d6_13,6,42,1,0.0258497485171371,0.0259134063416617,0.0369743190514673,2.75792254325755,0.109557181635453,0.0976080018855909,0.029980908747733,0.649212848234672
naive_a2_d0_10,naive_a2,d0_10,10,104,1,0.125891264174292,0.126071775330177,0.30932733005532,1.43371876298297,0.141836960529428,1.59796354184479e-27,0.095917013160988,0.178648474821737
naive_a2_d0_13,naive_a2,d0_13,10,124,1,0.0397967517409217,0.0398599319703312,0.0578149015961064,1.61366204723722,0.153633906173184,2.5469330031931e-28,0.025894419150261,0.0266660380156418
naive_a2_d0_5,naive_a2,d0_5,10,59,1,0.00107331575782455,0.00115218904921896,0.028152310883297,6.96223661591522,0.960550975833492,1.1254222201539e-09,0.000395858261274059,0.00563668931877035
naive_a2_d6_10,naive_a2,d6_10,9,45,1,0.449922139297732,0.450525162691322,0.522263670801849,-1.8,0.00929038977362001,8.02730473236241e-05,0.143377545072213,0.23692983335782
naive_a2_d6_13,naive_a2,d6_13,9,65,1,0.439759713746994,0.439915577313227,0.563543413702517,1.15527349799111,0.0165675905421826,0.00123453301903328,0.712698437296026,0.839317422332943
naive_boxa_d0_10,naive_boxa,d0_10,11,115,1,0.194116831474294,0.194284662755081,0.383551190839722,1.17792772470162,0.124842156542362,1.7431506758907e-32,0.174712550461141,0.268147954364157
naive_boxa_d0_13,naive_boxa,d0_13,11,138,1,0.0848056366333164,0.0848864932608599,0.140324990567599,1.30637615965008,0.140502409490992,1.21292542612342e-34,0.0717859200229646,0.121612217594298
naive_boxa_d0_5,naive_boxa,d0_5,11,65,1,0.00254470765200637,0.00267934065308424,0.0356145839564805,6.40329932104724,0.881419104187055,2.50618640106882e-11,0.0010002309013673,0.00912728188012594
naive_boxa_d6_10,naive_boxa,d6_10,10,50,1,0.46817073850354,0.468724498567948,0.534407300553877,-1.61904761904762,0.014689379915428,1.87688778586107e-05,0.141244057488063,0.219772818577224
naive_boxa_d6_13,naive_boxa,d6_13,10,73,1,0.530807487326757,0.530942127564996,0.696589180707779,0.873689202983884,0.0303916991304334,6.44631091768978e-05,0.852260403603235,0.983649216326651
1 variation grouping window nRats nObs covEqual interaction_p interaction_p_satt interaction_p_rs interaction_est stim_p day_p interaction_p_rate interaction_p_rs_rate
2 unmerge_d0_10 unmerge d0_10 6 61 1 0.142831730250263 0.142797566084653 0.247946685371652 1.55766564374789 0.497389134925754 2.83166776054496e-14 0.101273272943887 0.113635949369058
3 unmerge_d0_13 unmerge d0_13 6 70 1 0.1037612192755 0.103490077847449 0.222686826261486 1.54665472676189 0.343602740986316 3.0346358823857e-13 0.0729395844508811 0.0810848229835278
4 unmerge_d0_5 unmerge d0_5 6 36 1 0.015149263054839 0.0154996899553134 0.133145634512884 5.36190476190475 0.688839435920596 1.57055423419133e-07 0.00312728156805176 0.0378990615877136
5 unmerge_d6_10 unmerge d6_10 5 25 1 0.485980598616448 0.486366669144796 0.554919025308352 1.76666666666666 0.0975215172907211 0.227259314093653 0.889539569780549 0.921910870826714
6 unmerge_d6_13 unmerge d6_13 5 34 1 0.0971009786566259 0.0970128901807668 0.13816578257917 2.26696773140328 0.101395665857404 0.117493504965036 0.168410922832656 0.874930263016369
7 right_only_d0_10 right_only d0_10 7 72 1 0.072180139606096 0.0721794737454714 0.124574209202325 1.73004431141938 0.715879551990348 5.94289273347193e-16 0.0406170660292579 0.0396836748954027
8 right_only_d0_13 right_only d0_13 7 84 1 0.0480416099228058 0.0478799998667326 0.102857124294903 1.7001712792199 0.528517264593511 1.17078898575779e-14 0.0182494380376794 0.01709229589027
9 right_only_d0_5 right_only d0_5 7 42 1 0.00589730538358453 0.00612750828678172 0.0876259332262465 5.30714285714286 0.469556667463413 1.45827052706827e-08 0.000673572060461354 0.0180977446376148
10 right_only_d6_10 right_only d6_10 6 30 1 0.288979620167748 0.289798539517805 0.378365014630273 2.425 0.119238243812818 0.200957769624237 0.514255837007347 0.649543797033249
11 right_only_d6_13 right_only d6_13 6 42 1 0.0258497485171371 0.0259134063416617 0.0369743190514673 2.75792254325755 0.109557181635453 0.0976080018855909 0.029980908747733 0.649212848234672
12 naive_a2_d0_10 naive_a2 d0_10 10 104 1 0.125891264174292 0.126071775330177 0.30932733005532 1.43371876298297 0.141836960529428 1.59796354184479e-27 0.095917013160988 0.178648474821737
13 naive_a2_d0_13 naive_a2 d0_13 10 124 1 0.0397967517409217 0.0398599319703312 0.0578149015961064 1.61366204723722 0.153633906173184 2.5469330031931e-28 0.025894419150261 0.0266660380156418
14 naive_a2_d0_5 naive_a2 d0_5 10 59 1 0.00107331575782455 0.00115218904921896 0.028152310883297 6.96223661591522 0.960550975833492 1.1254222201539e-09 0.000395858261274059 0.00563668931877035
15 naive_a2_d6_10 naive_a2 d6_10 9 45 1 0.449922139297732 0.450525162691322 0.522263670801849 -1.8 0.00929038977362001 8.02730473236241e-05 0.143377545072213 0.23692983335782
16 naive_a2_d6_13 naive_a2 d6_13 9 65 1 0.439759713746994 0.439915577313227 0.563543413702517 1.15527349799111 0.0165675905421826 0.00123453301903328 0.712698437296026 0.839317422332943
17 naive_boxa_d0_10 naive_boxa d0_10 11 115 1 0.194116831474294 0.194284662755081 0.383551190839722 1.17792772470162 0.124842156542362 1.7431506758907e-32 0.174712550461141 0.268147954364157
18 naive_boxa_d0_13 naive_boxa d0_13 11 138 1 0.0848056366333164 0.0848864932608599 0.140324990567599 1.30637615965008 0.140502409490992 1.21292542612342e-34 0.0717859200229646 0.121612217594298
19 naive_boxa_d0_5 naive_boxa d0_5 11 65 1 0.00254470765200637 0.00267934065308424 0.0356145839564805 6.40329932104724 0.881419104187055 2.50618640106882e-11 0.0010002309013673 0.00912728188012594
20 naive_boxa_d6_10 naive_boxa d6_10 10 50 1 0.46817073850354 0.468724498567948 0.534407300553877 -1.61904761904762 0.014689379915428 1.87688778586107e-05 0.141244057488063 0.219772818577224
21 naive_boxa_d6_13 naive_boxa d6_13 10 73 1 0.530807487326757 0.530942127564996 0.696589180707779 0.873689202983884 0.0303916991304334 6.44631091768978e-05 0.852260403603235 0.983649216326651