4343fprintf(' === VISIBLE-TARGET ANALYSES ===\n\n ' );
4444
4545%% ERN - test if detectable
46- % social-FE p = 0.044 → DETECTABLE
46+ % social-FE
4747testing_meanAmplitude(char(grandAver ), ...
4848 {' grandAVG_112_social_vis_FE' , ' grandAVG_111_social_vis_corr' }, ...
4949 {' Soc_FE' , ' Soc_Corr' }, ...
5050 ' visible_soc_FE_ERN_detection' , [0 100 ], ern_cluster );
5151
52- % social-NFE p = 0.275 → NOT DETECTABLE
52+ % social-NFE
5353testing_meanAmplitude(char(grandAver ), ...
5454 {' grandAVG_113_social_vis_NFE' , ' grandAVG_111_social_vis_corr' }, ...
5555 {' Soc_NFE' , ' Soc_Corr' }, ...
5656 ' visible_soc_NFE_ERN_detection' , [0 100 ], ern_cluster );
5757
58- % nonsocial-FE p = 0.591 → NOT DETECTABLE
58+ % nonsocial-FE
5959testing_meanAmplitude(char(grandAver ), ...
6060 {' grandAVG_212_nonsoc_vis_FE' , ' grandAVG_211_nonsoc_vis_corr' }, ...
6161 {' Nonsoc_FE' , ' Nonsoc_Corr' }, ...
6262 ' visible_nonsoc_FE_ERN_detection' , [0 100 ], ern_cluster );
6363
64- % nonsocial-NFE p = 0.865 → NOT DETECTABLE
64+ % nonsocial-NFE
6565testing_meanAmplitude(char(grandAver ), ...
6666 {' grandAVG_213_nonsoc_vis_NFE' , ' grandAVG_211_nonsoc_vis_corr' }, ...
6767 {' Nonsoc_NFE' , ' Nonsoc_Corr' }, ...
6868 ' visible_nonsoc_NFE_ERN_detection' , [0 100 ], ern_cluster );
6969
70- %% delta-ERN ANOVA (error type × social condition) → no interaction, no error type effect, social condition effect p = .005
70+ %% delta-ERN ANOVA (error type × social condition)
7171design = table({' FE' ; ' FE' ; ' NFE' ; ' NFE' }, ...
7272 {' social' ; ' nonsocial' ; ' social' ; ' nonsocial' }, ...
7373 ' VariableNames' , {' ErrorType' , ' SocialCondition' });
7979 ' ranova' , design );
8080
8181%% Pe - test if detectable
82- % social-FE p = 0.028 → DETECTABLE
82+ % social-FE
8383testing_meanAmplitude(char(grandAver ), ...
8484 {' grandAVG_112_social_vis_FE' , ' grandAVG_111_social_vis_corr' }, ...
8585 {' Soc_FE' , ' Soc_Corr' }, ...
8686 ' visible_soc_FE_Pe_detection' , [200 500 ], pe_cluster );
8787
88- % social-NFE p = 0.069 → NOT DETECTABLE
88+ % social-NFE
8989testing_meanAmplitude(char(grandAver ), ...
9090 {' grandAVG_113_social_vis_NFE' , ' grandAVG_111_social_vis_corr' }, ...
9191 {' Soc_NFE' , ' Soc_Corr' }, ...
9292 ' visible_soc_NFE_Pe_detection' , [200 500 ], pe_cluster );
9393
94- % nonsocial-FE p = 0.068 → NOT DETECTABLE
94+ % nonsocial-FE
9595testing_meanAmplitude(char(grandAver ), ...
9696 {' grandAVG_212_nonsoc_vis_FE' , ' grandAVG_211_nonsoc_vis_corr' }, ...
9797 {' Nonsoc_FE' , ' Nonsoc_Corr' }, ...
9898 ' visible_nonsoc_FE_Pe_detection' , [200 500 ], pe_cluster );
9999
100- % nonsocial-NFE p = 0.169 → NOT DETECTABLE
100+ % nonsocial-NFE
101101testing_meanAmplitude(char(grandAver ), ...
102102 {' grandAVG_213_nonsoc_vis_NFE' , ' grandAVG_211_nonsoc_vis_corr' }, ...
103103 {' Nonsoc_NFE' , ' Nonsoc_Corr' }, ...
104104 ' visible_nonsoc_NFE_Pe_detection' , [200 500 ], pe_cluster );
105105
106- %% delta-Pe ANOVA (error type × social condition) → all p > .05
106+ %% delta-Pe ANOVA (error type × social condition)
107107testing_meanAmplitude(char(diffWaves ), ...
108108 {' diffWave_soc_vis_FE' , ' diffWave_nonsoc_vis_FE' , ...
109109 ' diffWave_soc_vis_NFE' , ' diffWave_nonsoc_vis_NFE' }, ...
115115fprintf(' \n --- Collapsed Errors Analysis ---\n ' );
116116
117117%% ERN - collapsed errors
118- % social collapsed errors p = 0.151 → NOT DETECTABLE
118+ % social collapsed errors
119119testing_meanAmplitude(char(grandAver ), ...
120120 {' grandAVG_110_social_vis_error' , ' grandAVG_111_social_vis_corr' }, ...
121121 {' Soc_Error_Collapsed' , ' Soc_Corr' }, ...
122122 ' visible_soc_collapsed_ERN_detection' , [0 100 ], ern_cluster );
123123
124- % nonsocial collapsed errors p = 0.769 → NOT DETECTABLE
124+ % nonsocial collapsed errors
125125testing_meanAmplitude(char(grandAver ), ...
126126 {' grandAVG_210_nonsoc_vis_error' , ' grandAVG_211_nonsoc_vis_corr' }, ...
127127 {' Nonsoc_Error_Collapsed' , ' Nonsoc_Corr' }, ...
128128 ' visible_nonsoc_collapsed_ERN_detection' , [0 100 ], ern_cluster );
129129
130- % delta-ERN t-test (social vs nonsocial) → significant: p = .008
130+ % delta-ERN t-test (social vs nonsocial)
131131testing_meanAmplitude(char(diffWaves ), ...
132132 {' diffWave_soc_vis_error' , ' diffWave_nonsoc_vis_error' }, ...
133133 {' Soc_Error_Collapsed' , ' Nonsoc_Error_Collapsed' }, ...
134134 ' visible_collapsed_deltaERN_comparison' , [0 100 ], ern_cluster );
135135
136136%% Pe - collapsed errors
137- % social collapsed errors p = 0.013 → DETECTABLE
137+ % social collapsed errors
138138testing_meanAmplitude(char(grandAver ), ...
139139 {' grandAVG_110_social_vis_error' , ' grandAVG_111_social_vis_corr' }, ...
140140 {' Soc_Error_Collapsed' , ' Soc_Corr' }, ...
158158fprintf(' \n === INVISIBLE-TARGET ANALYSES ===\n\n ' );
159159
160160%% ERN - test if detectable
161- % social-FE p = 0.991 → NOT DETECTABLE
161+ % social-FE
162162testing_meanAmplitude(char(grandAver ), ...
163163 {' grandAVG_102_social_invis_FE' , ' grandAVG_111_social_vis_corr' }, ...
164164 {' Soc_Invis_FE' , ' Soc_Vis_Corr' }, ...
165165 ' invisible_soc_FE_ERN_detection' , [0 100 ], ern_cluster );
166166
167- % social-NFG p = 0.082 → NOT DETECTABLE
167+ % social-NFG
168168testing_meanAmplitude(char(grandAver ), ...
169169 {' grandAVG_104_social_invis_NFG' , ' grandAVG_111_social_vis_corr' }, ...
170170 {' Soc_Invis_NFG' , ' Soc_Vis_Corr' }, ...
171171 ' invisible_soc_NFG_ERN_detection' , [0 100 ], ern_cluster );
172172
173- % nonsocial-FE p = 0.015 → DETECTABLE (but reversed direction!)
173+ % nonsocial-FE
174174testing_meanAmplitude(char(grandAver ), ...
175175 {' grandAVG_202_nonsoc_invis_FE' , ' grandAVG_211_nonsoc_vis_corr' }, ...
176176 {' Nonsoc_Invis_FE' , ' Nonsoc_Vis_Corr' }, ...
177177 ' invisible_nonsoc_FE_ERN_detection' , [0 100 ], ern_cluster );
178178
179- % nonsocial-NFG p = 0.102 → NOT DETECTABLE
179+ % nonsocial-NFG
180180testing_meanAmplitude(char(grandAver ), ...
181181 {' grandAVG_204_nonsoc_invis_NFG' , ' grandAVG_211_nonsoc_vis_corr' }, ...
182182 {' Nonsoc_Invis_NFG' , ' Nonsoc_Vis_Corr' }, ...
194194 ' ranova' , design_invis );
195195
196196%% Pe - test if detectable
197- % social-FE p = 0.420 → NOT DETECTABLE
197+ % social-FE
198198testing_meanAmplitude(char(grandAver ), ...
199199 {' grandAVG_102_social_invis_FE' , ' grandAVG_111_social_vis_corr' }, ...
200200 {' Soc_Invis_FE' , ' Soc_Vis_Corr' }, ...
201201 ' invisible_soc_FE_Pe_detection' , [200 500 ], pe_cluster );
202202
203- % social-NFG p = 0.519 → NOT DETECTABLE
203+ % social-NFG
204204testing_meanAmplitude(char(grandAver ), ...
205205 {' grandAVG_104_social_invis_NFG' , ' grandAVG_111_social_vis_corr' }, ...
206206 {' Soc_Invis_NFG' , ' Soc_Vis_Corr' }, ...
207207 ' invisible_soc_NFG_Pe_detection' , [200 500 ], pe_cluster );
208208
209- % nonsocial-FE p = 0.019 → DETECTABLE
209+ % nonsocial-FE
210210testing_meanAmplitude(char(grandAver ), ...
211211 {' grandAVG_202_nonsoc_invis_FE' , ' grandAVG_211_nonsoc_vis_corr' }, ...
212212 {' Nonsoc_Invis_FE' , ' Nonsoc_Vis_Corr' }, ...
213213 ' invisible_nonsoc_FE_Pe_detection' , [200 500 ], pe_cluster );
214214
215- % nonsocial-NFG p = 0.015 → DETECTABLE
215+ % nonsocial-NFG
216216testing_meanAmplitude(char(grandAver ), ...
217217 {' grandAVG_204_nonsoc_invis_NFG' , ' grandAVG_211_nonsoc_vis_corr' }, ...
218218 {' Nonsoc_Invis_NFG' , ' Nonsoc_Vis_Corr' }, ...
248248end
249249fprintf(' Moved %d invisible-target statistics files\n ' , length(invisFiles ));
250250
251- %% generate html report
252- fprintf(' \n Generating HTML report...\n ' );
253- publish(' batch_erp_analyses.m' , ...
254- ' format' , ' html' , ...
255- ' outputDir' , reportsDir , ...
256- ' evalCode' , false );
257-
258251%% create summary file
259252summaryFile = fullfile(outputDir , ' analysis_summary.txt' );
260253fid = fopen(summaryFile , ' w' );
277270fprintf(' \n ========================================\n ' );
278271fprintf(' Analysis Complete!\n ' );
279272fprintf(' Output saved to:\n%s\n ' , outputDir );
280- fprintf(' ========================================\n ' );
273+ fprintf(' ========================================\n ' );
274+
275+
276+ % %% generate html report
277+ % fprintf('\nGenerating HTML report...\n');
278+ % publish('batch_erp_analyses.m', ...
279+ % 'format', 'html', ...
280+ % 'outputDir', reportsDir, ...
281+ % 'evalCode', true);
0 commit comments