@brainpilot/skills 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +28 -0
  4. package/dist/index.js.map +1 -0
  5. package/package.json +35 -0
  6. package/skills/01_Meta-Skills/contribute-skill/SKILL.md +277 -0
  7. package/skills/01_Meta-Skills/contribute-skills-via-pr/SKILL.md +163 -0
  8. package/skills/01_Meta-Skills/paper-to-skill/SKILL.md +435 -0
  9. package/skills/01_Meta-Skills/paper-to-skill/references/extraction-guide.md +286 -0
  10. package/skills/01_Meta-Skills/paper-to-skill/references/skill-template.md +250 -0
  11. package/skills/01_Meta-Skills/repo-to-skill/SKILL.md +289 -0
  12. package/skills/01_Meta-Skills/share-case/SKILL.md +253 -0
  13. package/skills/01_Meta-Skills/share-usage/README.md +63 -0
  14. package/skills/01_Meta-Skills/share-usage/SKILL.md +395 -0
  15. package/skills/01_Meta-Skills/verify-skill/SKILL.md +331 -0
  16. package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/SKILL.md +194 -0
  17. package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/effect-sizes.md +352 -0
  18. package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/sample-size-guide.md +407 -0
  19. package/skills/02_Cross-Domain_Foundation/cogsci-statistics/SKILL.md +361 -0
  20. package/skills/02_Cross-Domain_Foundation/cogsci-statistics/references/common-analyses.md +517 -0
  21. package/skills/02_Cross-Domain_Foundation/cogsci-visualization/SKILL.md +292 -0
  22. package/skills/02_Cross-Domain_Foundation/cogsci-visualization/references/plot-recipes.md +709 -0
  23. package/skills/02_Cross-Domain_Foundation/research-literacy/SKILL.md +286 -0
  24. package/skills/02_Cross-Domain_Foundation/research-literacy/references/common-assumptions.md +320 -0
  25. package/skills/02_Cross-Domain_Foundation/research-literacy/references/planning-template.md +143 -0
  26. package/skills/03_Cognitive_Psychology/alternative-uses-task-designer/SKILL.md +197 -0
  27. package/skills/03_Cognitive_Psychology/alternative-uses-task-designer/references/instruction-templates.md +60 -0
  28. package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/SKILL.md +246 -0
  29. package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/references/classic-paradigms.md +435 -0
  30. package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/references/design-principles.md +256 -0
  31. package/skills/03_Cognitive_Psychology/creativity-self-efficacy-mediation/SKILL.md +270 -0
  32. package/skills/03_Cognitive_Psychology/creativity-self-efficacy-mediation/references/lavaan-templates.md +172 -0
  33. package/skills/03_Cognitive_Psychology/divergent-thinking-scoring/SKILL.md +238 -0
  34. package/skills/03_Cognitive_Psychology/divergent-thinking-scoring/references/scoring-rubric.md +143 -0
  35. package/skills/03_Cognitive_Psychology/drift-diffusion-model/SKILL.md +203 -0
  36. package/skills/03_Cognitive_Psychology/drift-diffusion-model/references/fitting-guide.md +571 -0
  37. package/skills/03_Cognitive_Psychology/drift-diffusion-model/references/model-variants.md +427 -0
  38. package/skills/03_Cognitive_Psychology/evidence-accumulation-selector/SKILL.md +310 -0
  39. package/skills/03_Cognitive_Psychology/evidence-accumulation-selector/references/ez-diffusion-formulas.md +137 -0
  40. package/skills/03_Cognitive_Psychology/signal-detection-analysis/SKILL.md +300 -0
  41. package/skills/03_Cognitive_Psychology/signal-detection-analysis/references/application-guide.md +278 -0
  42. package/skills/03_Cognitive_Psychology/signal-detection-analysis/references/sdt-formulas.md +318 -0
  43. package/skills/03_Cognitive_Psychology/visual-search-array-generator/SKILL.md +283 -0
  44. package/skills/03_Cognitive_Psychology/visual-search-array-generator/references/array-generation-parameters.yaml +111 -0
  45. package/skills/04_Psycholinguistics/reading-time-analysis/SKILL.md +301 -0
  46. package/skills/04_Psycholinguistics/reading-time-analysis/references/measure-computation-guide.md +195 -0
  47. package/skills/04_Psycholinguistics/self-paced-reading-designer/SKILL.md +257 -0
  48. package/skills/04_Psycholinguistics/self-paced-reading-designer/references/analysis-guide.md +356 -0
  49. package/skills/04_Psycholinguistics/self-paced-reading-designer/references/region-segmentation.md +266 -0
  50. package/skills/04_Psycholinguistics/sentence-stimulus-norming/SKILL.md +346 -0
  51. package/skills/04_Psycholinguistics/sentence-stimulus-norming/references/lexical-databases-guide.md +184 -0
  52. package/skills/05_EEG_ERP/eeg-paradigm-designer/SKILL.md +226 -0
  53. package/skills/05_EEG_ERP/eeg-paradigm-designer/references/component-paradigm-map.md +276 -0
  54. package/skills/05_EEG_ERP/eeg-paradigm-designer/references/timing-parameters.md +244 -0
  55. package/skills/05_EEG_ERP/eeg-preprocessing-pipeline-guide/SKILL.md +367 -0
  56. package/skills/05_EEG_ERP/eeg-preprocessing-pipeline-guide/references/parameter-lookup-tables.md +138 -0
  57. package/skills/05_EEG_ERP/erp-analysis/SKILL.md +185 -0
  58. package/skills/05_EEG_ERP/erp-analysis/references/erp-components.md +447 -0
  59. package/skills/05_EEG_ERP/erp-analysis/references/preprocessing-pipeline.md +277 -0
  60. package/skills/05_EEG_ERP/erp-analysis/references/statistical-approaches.md +351 -0
  61. package/skills/05_EEG_ERP/mne-python-guide/SKILL.md +174 -0
  62. package/skills/05_EEG_ERP/mne-python-guide/references/decoding.md +178 -0
  63. package/skills/05_EEG_ERP/mne-python-guide/references/io_formats.md +160 -0
  64. package/skills/05_EEG_ERP/mne-python-guide/references/preprocessing.md +259 -0
  65. package/skills/05_EEG_ERP/mne-python-guide/references/simulation.md +173 -0
  66. package/skills/05_EEG_ERP/mne-python-guide/references/source_localization.md +234 -0
  67. package/skills/05_EEG_ERP/mne-python-guide/references/statistics.md +196 -0
  68. package/skills/05_EEG_ERP/mne-python-guide/references/time_frequency.md +165 -0
  69. package/skills/05_EEG_ERP/mne-python-guide/references/visualization.md +175 -0
  70. package/skills/06_fMRI_Neuroimaging/brain-connectivity-modeler/SKILL.md +317 -0
  71. package/skills/06_fMRI_Neuroimaging/brain-connectivity-modeler/references/method-implementation-guide.md +116 -0
  72. package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/SKILL.md +296 -0
  73. package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/references/design-matrix-guide.md +214 -0
  74. package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/references/statistical-inference.md +288 -0
  75. package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/SKILL.md +274 -0
  76. package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/references/quality-control.md +336 -0
  77. package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/references/step-by-step-pipeline.md +380 -0
  78. package/skills/06_fMRI_Neuroimaging/fmri-task-design-guide/SKILL.md +264 -0
  79. package/skills/06_fMRI_Neuroimaging/fmri-task-design-guide/references/design-optimization-examples.md +114 -0
  80. package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/SKILL.md +273 -0
  81. package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/references/decoding-methods.md +170 -0
  82. package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/references/rsa-guide.md +266 -0
  83. package/skills/06_fMRI_Neuroimaging/pycortex-guide/SKILL.md +123 -0
  84. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/database-subjects.md +179 -0
  85. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/dataset-types.md +208 -0
  86. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/freesurfer-fmriprep.md +162 -0
  87. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/mapping-transforms.md +181 -0
  88. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/mni-utils.md +207 -0
  89. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/surface-analysis.md +219 -0
  90. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/visualization.md +251 -0
  91. package/skills/07_Computational_Modeling/act-r-model-builder/SKILL.md +297 -0
  92. package/skills/07_Computational_Modeling/act-r-model-builder/references/model-patterns.md +197 -0
  93. package/skills/07_Computational_Modeling/act-r-model-builder/references/parameter-table.yaml +204 -0
  94. package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/SKILL.md +294 -0
  95. package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/references/diagnostics-checklist.md +351 -0
  96. package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/references/prior-selection-guide.md +241 -0
  97. package/skills/07_Computational_Modeling/parameter-recovery-checker/SKILL.md +269 -0
  98. package/skills/07_Computational_Modeling/parameter-recovery-checker/references/recovery-diagnostics.md +207 -0
  99. package/skills/08_Computational_Neuroscience/brain-connectivity-modeler/SKILL.md +317 -0
  100. package/skills/08_Computational_Neuroscience/brain-connectivity-modeler/references/method-implementation-guide.md +116 -0
  101. package/skills/08_Computational_Neuroscience/neural-decoding-analysis/SKILL.md +273 -0
  102. package/skills/08_Computational_Neuroscience/neural-decoding-analysis/references/decoding-methods.md +170 -0
  103. package/skills/08_Computational_Neuroscience/neural-decoding-analysis/references/rsa-guide.md +266 -0
  104. package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/SKILL.md +305 -0
  105. package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/references/data-requirements.md +60 -0
  106. package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/references/method-comparison.md +151 -0
  107. package/skills/08_Computational_Neuroscience/spiking-network-model-builder/SKILL.md +376 -0
  108. package/skills/08_Computational_Neuroscience/spiking-network-model-builder/references/hh-parameters.md +117 -0
  109. package/skills/08_Computational_Neuroscience/spiking-network-model-builder/references/network-regimes.md +130 -0
  110. package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/SKILL.md +258 -0
  111. package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/references/indicator-parameters.md +242 -0
  112. package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/references/pipeline-details.md +211 -0
  113. package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/SKILL.md +261 -0
  114. package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/references/opsin-catalog.md +124 -0
  115. package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/references/stimulation-parameters.md +304 -0
  116. package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/SKILL.md +367 -0
  117. package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/references/disconnection-guide.md +152 -0
  118. package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/references/vlsm-pipeline.md +182 -0
  119. package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/SKILL.md +250 -0
  120. package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/references/deficit-profiles.md +302 -0
  121. package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/references/test-catalog.md +304 -0
  122. package/skills/11_Developmental_Cognition/infant-looking-time-designer/SKILL.md +345 -0
  123. package/skills/11_Developmental_Cognition/infant-looking-time-designer/references/age-parameters.yaml +186 -0
  124. package/skills/12_Social_Cognition/tom-task-selector/SKILL.md +379 -0
  125. package/skills/12_Social_Cognition/tom-task-selector/references/task-database.md +317 -0
  126. package/skills/13_Visualization/nature-figure/README.md +442 -0
  127. package/skills/13_Visualization/nature-figure/SKILL.md +60 -0
  128. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-01-bar-charts.png +0 -0
  129. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-02-line-trends.png +0 -0
  130. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-03-heatmaps.png +0 -0
  131. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-04-scatter-bubble.png +0 -0
  132. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-05-radar-polar.png +0 -0
  133. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-06-distributions.png +0 -0
  134. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-07-forest-interval.png +0 -0
  135. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-08-area-stacked.png +0 -0
  136. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-09-image-plates.png +0 -0
  137. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-10-network-matrix.png +0 -0
  138. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_motivation.png +0 -0
  139. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_observation.png +0 -0
  140. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_observation_distillation.png +0 -0
  141. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_contrastive.png +0 -0
  142. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_results_CEDAR.png +0 -0
  143. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_results_IEDB.png +0 -0
  144. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_schematic.png +0 -0
  145. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/RNAGenScape_schematic.png +0 -0
  146. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/figures/ablation.png +0 -0
  147. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/figures/comparison.png +0 -0
  148. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/plot_ablation.py +86 -0
  149. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/plot_comparison.py +109 -0
  150. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/diffusion_swiss_roll.py +97 -0
  151. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/diffusion_swiss_roll.png +0 -0
  152. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_GeneRegulatory.pdf +0 -0
  153. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_GeneRegulatory.png +0 -0
  154. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_Trajectory.pdf +0 -0
  155. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_Trajectory.png +0 -0
  156. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/figX_comparison_Ablation.pdf +0 -0
  157. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/figX_comparison_Ablation.png +0 -0
  158. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_Ablation.py +64 -0
  159. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_GeneRegulatory.py +74 -0
  160. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_Trajectory.py +74 -0
  161. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/figures/idea.png +0 -0
  162. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/figures/illustration.png +0 -0
  163. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/plot_idea.py +76 -0
  164. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/plot_illustration.py +404 -0
  165. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_FPGM/figures/freq_prior.png +0 -0
  166. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_FPGM/plot_freq_prior.py +146 -0
  167. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_ablation_Cancer.png +0 -0
  168. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_ablation_IEDB.png +0 -0
  169. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_comparison_Cancer.png +0 -0
  170. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_comparison_IEDB.png +0 -0
  171. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/plot_bars.py +216 -0
  172. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/raw_data.py +125 -0
  173. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/manifold.png +0 -0
  174. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/manifold_holes.png +0 -0
  175. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_comparison_optimization.png +0 -0
  176. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_comparison_speed.png +0 -0
  177. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_sweep.png +0 -0
  178. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_comparison.py +228 -0
  179. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_hole_manifold.py +82 -0
  180. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_manifold.py +61 -0
  181. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_sweep.py +77 -0
  182. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/figures/comparison_posttraining.png +0 -0
  183. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/figures/comparison_radar.png +0 -0
  184. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/plot_comparison_radar.py +173 -0
  185. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/plot_posttraining.py +82 -0
  186. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/brute_force.png +0 -0
  187. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/correctness_by_category.png +0 -0
  188. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/correctness_by_subcategory.png +0 -0
  189. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/rewriting.png +0 -0
  190. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/selfcorrection_math.png +0 -0
  191. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_brute_force.py +248 -0
  192. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_correctness_by_category.py +132 -0
  193. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_correctness_by_subcategory.py +131 -0
  194. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_rewriting.py +105 -0
  195. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_selfcorrection_math.py +99 -0
  196. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/figures/composition_heatmap.png +0 -0
  197. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/figures/trend_by_month.png +0 -0
  198. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/plot_composition.py +81 -0
  199. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/plot_trend.py +125 -0
  200. package/skills/13_Visualization/nature-figure/assets/gallery/fig1-material-mechanism-rich.png +0 -0
  201. package/skills/13_Visualization/nature-figure/assets/gallery/fig2-spatial-imaging-rich.png +0 -0
  202. package/skills/13_Visualization/nature-figure/assets/gallery/fig3-in-vivo-efficacy-rich.png +0 -0
  203. package/skills/13_Visualization/nature-figure/assets/gallery/fig4-single-cell-systems-rich.png +0 -0
  204. package/skills/13_Visualization/nature-figure/assets/gallery/fig5-validation-perturbation-rich.png +0 -0
  205. package/skills/13_Visualization/nature-figure/evals/evals.json +37 -0
  206. package/skills/13_Visualization/nature-figure/manifest.yaml +57 -0
  207. package/skills/13_Visualization/nature-figure/references/api.md +428 -0
  208. package/skills/13_Visualization/nature-figure/references/backend-selection.md +100 -0
  209. package/skills/13_Visualization/nature-figure/references/chart-types.md +281 -0
  210. package/skills/13_Visualization/nature-figure/references/common-patterns.md +350 -0
  211. package/skills/13_Visualization/nature-figure/references/demos.md +65 -0
  212. package/skills/13_Visualization/nature-figure/references/design-theory.md +436 -0
  213. package/skills/13_Visualization/nature-figure/references/figure-contract.md +93 -0
  214. package/skills/13_Visualization/nature-figure/references/nature-2026-observations.md +112 -0
  215. package/skills/13_Visualization/nature-figure/references/qa-contract.md +119 -0
  216. package/skills/13_Visualization/nature-figure/references/r-template-index.md +66 -0
  217. package/skills/13_Visualization/nature-figure/references/r-workflow.md +161 -0
  218. package/skills/13_Visualization/nature-figure/references/tutorials.md +251 -0
  219. package/skills/13_Visualization/nature-figure/static/core/contract.md +29 -0
  220. package/skills/13_Visualization/nature-figure/static/core/stance.md +37 -0
  221. package/skills/13_Visualization/nature-figure/static/fragments/backend/python.md +37 -0
  222. package/skills/13_Visualization/nature-figure/static/fragments/backend/r.md +44 -0
  223. package/skills/14_Writing/markdown-report-writing/SKILL.md +306 -0
  224. package/skills/14_Writing/markdown-report-writing/references/compatibility-matrix.md +72 -0
  225. package/skills/14_Writing/markdown-report-writing/references/templates.md +299 -0
  226. package/skills/15_Others/neuroimaging-power-guide/SKILL.md +324 -0
  227. package/skills/15_Others/neuroimaging-power-guide/references/effect-size-lookup-tables.md +102 -0
  228. package/skills/15_Others/neuroimaging-sample-size-calculator/SKILL.md +330 -0
  229. package/skills/15_Others/neuroimaging-sample-size-calculator/references/worked-examples.md +220 -0
@@ -0,0 +1,111 @@
1
+ # Visual Search Array Generation Parameters
2
+ # Machine-readable parameter specification for generating visual search arrays
3
+ # All values are validated against the citations in the main SKILL.md
4
+
5
+ display:
6
+ max_eccentricity_deg: 15.0 # Maximum distance from fixation in degrees of visual angle (Wolfe et al., 1998)
7
+ min_item_spacing_deg: 1.0 # Minimum center-to-center distance in degrees (Bouma, 1970; prevents crowding)
8
+ min_fixation_distance_deg: 1.0 # Minimum distance of items from fixation point
9
+ item_size_range_deg:
10
+ min: 0.5
11
+ max: 2.0 # Standard range for search items (Wolfe, 2021)
12
+
13
+ set_sizes:
14
+ classify_search_type: [4, 8, 12, 16] # Minimum 3 set sizes; 4 recommended (Wolfe, 2021)
15
+ test_pop_out: [8, 16, 32] # Wide range for confirming parallel search
16
+ standard_conjunction: [4, 8, 12, 16, 20] # Fine-grained slope estimation (Wolfe, 1994)
17
+ quick_screening: [6, 12, 18] # Three evenly spaced sizes
18
+ max_practical: 50 # Constrained by spacing and eccentricity limits
19
+
20
+ trial_structure:
21
+ target_present_ratio: 0.5 # Standard 1:1 ratio (Chun & Wolfe, 1996)
22
+ low_prevalence_ratio: 0.1 # For prevalence effect studies (Wolfe et al., 2005)
23
+ min_trials_per_cell: 20 # Minimum per set_size x presence combination (Wolfe, 2021)
24
+ recommended_trials_per_cell: 30 # For stable RT distributions
25
+ practice_trials: 20 # Before data collection
26
+ max_consecutive_same_type: 4 # Randomization constraint on present/absent runs
27
+
28
+ timing_ms:
29
+ fixation_duration:
30
+ min: 500
31
+ max: 1000
32
+ display_duration: null # null = until response (self-paced is standard)
33
+ brief_presentation:
34
+ min: 100
35
+ max: 200 # For pre-attentive processing tests (Treisman & Gelade, 1980)
36
+ response_deadline:
37
+ min: 3000
38
+ max: 5000
39
+ inter_trial_interval:
40
+ min: 500
41
+ max: 1000
42
+ feedback_duration: 500
43
+
44
+ search_slope_benchmarks_ms_per_item:
45
+ # Target-present slopes (Wolfe, 2021)
46
+ highly_efficient:
47
+ max: 5
48
+ label: "pop-out"
49
+ efficient:
50
+ min: 5
51
+ max: 10
52
+ label: "feature-like"
53
+ moderately_efficient:
54
+ min: 10
55
+ max: 20
56
+ label: "guided search"
57
+ inefficient:
58
+ min: 20
59
+ max: 30
60
+ label: "conjunction-like"
61
+ very_inefficient:
62
+ min: 30
63
+ label: "serial / spatial configuration"
64
+ absent_to_present_slope_ratio: 2.0 # For self-terminating search (Treisman & Gelade, 1980)
65
+
66
+ feature_dimensions:
67
+ color:
68
+ min_hue_difference_deg: 30 # In CIE L*a*b* hue angle for pop-out (Nagy & Sanchez, 1990)
69
+ equate_luminance: true # Always equate luminance across colors
70
+ recommended_color_space: "CIE L*a*b*" # Device-independent; avoid RGB for reporting
71
+ max_distinct_colors: 4 # Typical for conjunction search (Wolfe, 1994)
72
+
73
+ orientation:
74
+ pop_out_threshold_deg: 30 # Minimum difference for reliable pop-out (Wolfe et al., 1992)
75
+ feature_search_jnd_deg: 15 # Minimum for efficient search (Foster & Ward, 1991)
76
+ cardinal_advantage: true # Vertical/horizontal detected faster than obliques (Appelle, 1972)
77
+ recommended_obliques_deg: [45, 135] # Avoid cardinal effects unless studying them
78
+
79
+ size:
80
+ pop_out_ratio: 1.5 # Target/distractor size ratio for pop-out (Treisman & Gelade, 1980)
81
+ weber_fraction: 0.05 # Approximate size discrimination JND (Nachmias, 2011)
82
+
83
+ crowding:
84
+ # Critical spacing ~ 0.5 x eccentricity (Bouma, 1970)
85
+ bouma_constant: 0.5
86
+ examples:
87
+ - eccentricity_deg: 5
88
+ min_spacing_deg: 2.5
89
+ - eccentricity_deg: 10
90
+ min_spacing_deg: 5.0
91
+ - eccentricity_deg: 2
92
+ min_spacing_deg: 1.0
93
+
94
+ placement_algorithms:
95
+ - name: "grid_with_jitter"
96
+ description: "Regular grid positions with random jitter added"
97
+ jitter_range_deg: 0.3 # Uniform +/- jitter (Wolfe et al., 1998)
98
+
99
+ - name: "random_with_rejection"
100
+ description: "Random positions, reject violations of spacing constraints"
101
+ max_attempts: 1000 # Maximum placement attempts before regenerating
102
+
103
+ - name: "concentric_rings"
104
+ description: "Items placed on rings at fixed eccentricities"
105
+ controls_eccentricity: true # Best for controlling eccentricity distribution
106
+
107
+ randomization:
108
+ target_position: "counterbalance across quadrants and eccentricity bins"
109
+ set_size_order: "randomize within blocks"
110
+ conjunction_distractor_split: 0.5 # 50% share each feature with target (Treisman & Gelade, 1980)
111
+ block_structure: "within-block mixing is standard (Wolfe, 2021)"
@@ -0,0 +1,301 @@
1
+ ---
2
+ name: "reading-time-analysis"
3
+ description: "Guides analysis of eye-tracking reading measures including first fixation, gaze duration, regression path, and total reading time"
4
+ domain: "psycholinguistics"
5
+ version: "1.0.0"
6
+ authors:
7
+ - "Claude (AI-assisted)"
8
+ papers:
9
+ - "Rayner, 1998"
10
+ - "Rayner, 2009"
11
+ - "Clifton et al., 2007"
12
+ - "Baayen et al., 2008"
13
+ - "Rayner & Pollatsek, 1989"
14
+ dependencies:
15
+ required:
16
+ - research-literacy
17
+ review_status: "ai-generated"
18
+ ---
19
+
20
+ # Reading Time Analysis
21
+
22
+ ## Purpose
23
+
24
+ This skill encodes expert methodological knowledge for analyzing eye-tracking data from reading experiments. A competent programmer without psycholinguistics training would likely compute a single "reading time" per word, missing the critical insight that different eye-tracking measures tap different stages of language processing. Choosing the wrong measure for your research question -- or failing to account for spillover effects, skipping patterns, and the distinction between first-pass and second-pass reading -- leads to misattribution of cognitive processes.
25
+
26
+ ## When to Use
27
+
28
+ Use this skill when:
29
+
30
+ - Analyzing eye-movement data from reading experiments (sentence or passage reading)
31
+ - Selecting which eye-tracking measures to report for a given linguistic manipulation
32
+ - Defining regions of interest and handling spillover effects
33
+ - Setting up statistical models for eye-tracking reading data
34
+ - Cleaning and filtering fixation data for reading analyses
35
+
36
+ Do **not** use this skill when:
37
+
38
+ - Analyzing self-paced reading data (see `self-paced-reading-designer` for that paradigm)
39
+ - Analyzing eye movements in visual search or scene viewing (different fixation patterns)
40
+ - Working with eye-tracking data from non-reading tasks (e.g., visual world paradigm)
41
+
42
+ ## Research Planning Protocol
43
+
44
+ Before executing the domain-specific steps below, you MUST:
45
+
46
+ 1. **State the research question** -- What specific question is this analysis/paradigm addressing?
47
+ 2. **Justify the method choice** -- Why is this approach appropriate? What alternatives were considered?
48
+ 3. **Declare expected outcomes** -- What results would support vs. refute the hypothesis?
49
+ 4. **Note assumptions and limitations** -- What does this method assume? Where could it mislead?
50
+ 5. **Present the plan to the user and WAIT for confirmation** before proceeding.
51
+
52
+ For detailed methodology guidance, see the `research-literacy` skill.
53
+
54
+
55
+ ## ⚠️ Verification Notice
56
+
57
+ This skill was generated by AI from academic literature. All parameters, thresholds, and citations require independent verification before use in research. If you find errors, please [open an issue](https://github.com/HaoxuanLiTHUAI/awesome_cognitive_and_neuroscience_skills/issues).
58
+
59
+ ## Eye-Tracking Reading Measures Hierarchy
60
+
61
+ ### Measure Definitions and Cognitive Interpretations
62
+
63
+ The following measures are ordered from earliest to latest processing stages. This hierarchy reflects the temporal unfolding of language comprehension during reading (Rayner, 1998, 2009; Clifton et al., 2007).
64
+
65
+ #### First-Pass Measures (Before Leaving the Region)
66
+
67
+ | Measure | Definition | Cognitive Process | When to Use |
68
+ |---------|-----------|------------------|-------------|
69
+ | **First Fixation Duration (FFD)** | Duration of the first fixation on a word during first pass | Early lexical access; initial contact with the word (Rayner, 1998) | When testing early word recognition effects (frequency, predictability) |
70
+ | **Single Fixation Duration (SFD)** | Duration of the only fixation on a word, when exactly one first-pass fixation occurs | Cleaner measure of early lexical processing than FFD (Rayner, 2009) | When most words receive one fixation; avoids refixation confounds |
71
+ | **Gaze Duration (GD)** | Sum of all first-pass fixation durations on a word (before eyes leave the word in either direction) | Lexical processing / word identification (Rayner, 1998, 2009) | **Default first-pass measure** for most word-level analyses |
72
+
73
+ #### Late Measures (After Leaving the Region)
74
+
75
+ | Measure | Definition | Cognitive Process | When to Use |
76
+ |---------|-----------|------------------|-------------|
77
+ | **Go-Past Time (GPT)** / Regression Path Duration | Time from first fixation on the word until first fixation to the right of the word (includes any regressions out and back) | Integration difficulty; signals reanalysis of prior material (Clifton et al., 2007) | When testing syntactic garden-path effects, semantic anomalies, discourse integration |
78
+ | **Total Reading Time (TRT)** | Sum of all fixation durations on a word (first pass + regressions back) | Overall processing difficulty (Rayner, 1998) | When interested in total processing cost regardless of time course |
79
+ | **Regression Probability (Reg-out)** | Binary: did the reader make a regression from this region? | Reanalysis / comprehension difficulty (Clifton et al., 2007) | When interested in whether (not how long) reanalysis occurred |
80
+ | **Regression-in Probability** | Binary: did the reader regress back to this region from downstream? | Downstream difficulty triggers revisitation (Rayner & Pollatsek, 1989) | When testing whether a region is revisited after later processing fails |
81
+
82
+ ### Decision Tree: Which Measure for Which Question?
83
+
84
+ ```
85
+ What stage of processing is your manipulation expected to affect?
86
+ |
87
+ +-- EARLY LEXICAL (word frequency, orthographic regularity, predictability)
88
+ | |
89
+ | +-- Use GAZE DURATION as primary measure (Rayner, 1998, 2009)
90
+ | +-- Report FIRST FIXATION DURATION as supplementary
91
+ | +-- Report SINGLE FIXATION DURATION if high proportion of
92
+ | single-fixation cases (Rayner, 2009)
93
+ |
94
+ +-- LATE LEXICAL / POST-LEXICAL (semantic plausibility, thematic fit)
95
+ | |
96
+ | +-- Use GAZE DURATION for early effects
97
+ | +-- Use GO-PAST TIME for integration effects (Clifton et al., 2007)
98
+ | +-- Use TOTAL READING TIME for overall effects
99
+ |
100
+ +-- SYNTACTIC (garden-path, structural ambiguity, reanalysis)
101
+ | |
102
+ | +-- Use GO-PAST TIME as primary measure (Clifton et al., 2007)
103
+ | +-- Use REGRESSION PROBABILITY as complementary binary measure
104
+ | +-- Effects often appear in the SPILLOVER REGION (1-2 words
105
+ | post-critical; Rayner & Pollatsek, 1989)
106
+ |
107
+ +-- DISCOURSE / PRAGMATIC (reference resolution, inference, coherence)
108
+ | |
109
+ | +-- Use GO-PAST TIME and TOTAL READING TIME
110
+ | +-- Effects are typically late and may span multiple words
111
+ | +-- Consider REGRESSION-IN probability for earlier regions
112
+ |
113
+ +-- EXPLORATORY / UNKNOWN TIMING
114
+ |
115
+ +-- Report ALL major measures: FFD, GD, GPT, TRT, Reg-out
116
+ +-- Let the pattern across measures inform process interpretation
117
+ ```
118
+
119
+ ### First-Pass vs. Second-Pass Distinction
120
+
121
+ | Category | Definition | Includes |
122
+ |----------|-----------|----------|
123
+ | **First pass** | All fixations from first entering a region until first leaving it (in either direction) | FFD, SFD, GD |
124
+ | **Second pass** | All fixations on a region after first leaving it | Re-reading time (TRT minus first-pass time) |
125
+
126
+ **Why this matters**: First-pass measures reflect initial processing; second-pass measures reflect recovery from processing difficulty encountered downstream. Conflating them obscures when processing difficulty arose.
127
+
128
+ ## Region of Interest (ROI) Definition
129
+
130
+ ### Word-Level ROIs
131
+
132
+ - The most common unit of analysis is the **single word** (Rayner, 1998)
133
+ - For multi-word critical regions, report analyses at both word level and region level
134
+
135
+ ### Multi-Word ROIs
136
+
137
+ - Sometimes necessary for syntactic manipulations where the critical structure spans multiple words
138
+ - Define ROIs **a priori** based on linguistic structure, not post-hoc based on where effects appear
139
+ - Report the number of characters and words in each ROI
140
+
141
+ ### Spillover Effects
142
+
143
+ Spillover is the delayed manifestation of a processing effect on fixations one or more words downstream of the critical word (Rayner & Pollatsek, 1989).
144
+
145
+ - **Typical spillover range**: **1-2 words** after the critical word (Rayner, 1998)
146
+ - **Always analyze the spillover region** (word n+1, sometimes n+2) in addition to the critical word
147
+ - Spillover is most common for first-pass measures (GD, FFD)
148
+ - **Pre-target region** (word n-1) should also be checked to verify no confounding baseline differences
149
+
150
+ ### Parafoveal Preview Effects
151
+
152
+ - Words are partially processed before they are directly fixated -- the **parafoveal preview benefit** (Rayner, 1975; Rayner, 2009)
153
+ - Parafoveal preview extends to approximately **7-8 characters** to the right of fixation in English (McConkie & Rayner, 1975)
154
+ - This means effects of word n's properties can appear on the **last fixation of word n-1** (parafoveal-on-foveal effects; Drieghe et al., 2008)
155
+
156
+ ## Data Cleaning
157
+
158
+ ### Fixation Duration Cutoffs
159
+
160
+ | Criterion | Value | Rationale | Citation |
161
+ |-----------|-------|-----------|----------|
162
+ | **Short fixation merge** | < **80 ms** within **1 character** of another fixation: merge with nearest fixation | Too brief for meaningful processing; likely corrective saccade (Rayner & Pollatsek, 1989) |
163
+ | **Short fixation exclude** | < **80 ms** (not adjacent to another fixation): exclude | Not informative for reading (Rayner & Pollatsek, 1989) |
164
+ | **Long fixation exclude** | > **800 ms**: exclude | Likely track loss, inattention, or blink artifact (Rayner & Pollatsek, 1989) |
165
+ | **Alternative long cutoff** | > **1000 ms** or > **1200 ms** | Used in some labs; report which cutoff and justify |
166
+
167
+ **Note**: Some researchers use **50 ms** as the lower bound and **1000-1200 ms** as the upper bound. The critical requirement is to **report your exact cutoffs and the percentage of data excluded**.
168
+
169
+ ### Trial-Level Exclusions
170
+
171
+ | Criterion | Action | Rationale |
172
+ |-----------|--------|-----------|
173
+ | **Track loss** | Exclude trial | Unreliable position data |
174
+ | **Blinks on critical region** | Exclude trial | Missing fixation data on the ROI |
175
+ | **First-pass skip of critical word** | Exclude from first-pass measures (FFD, SFD, GD); include in TRT | Word was not fixated during first pass |
176
+ | **Comprehension accuracy** | Exclude participants below **80%** on comprehension questions | Ensures reading for comprehension (Rayner et al., 2006) |
177
+
178
+ ### Skipping Rate Considerations
179
+
180
+ - Short, high-frequency, and predictable words are skipped **10-30%** of the time (Rayner, 1998, 2009)
181
+ - Content words are skipped ~**15%** of the time; function words ~**35%** (Rayner, 2009)
182
+ - If skipping rates differ across conditions, this is informative -- report it
183
+ - For first-pass measures, words that are skipped contribute **no data**, not zero reading time
184
+ - **Do not substitute zero for skipped words** -- this conflates fast processing with no fixation
185
+
186
+ ## Statistical Modeling
187
+
188
+ ### Linear Mixed-Effects Models (LMMs)
189
+
190
+ Eye-tracking reading data should be analyzed with LMMs with **crossed random effects** for subjects and items (Baayen et al., 2008; Baayen, Davidson, & Bates, 2008):
191
+
192
+ ```
193
+ # R formula (lme4 syntax):
194
+ gaze_duration ~ condition + (1 + condition | subject) + (1 + condition | item)
195
+ ```
196
+
197
+ **Why crossed random effects**: Reading experiments use a **Latin square** design where every subject sees every item, but items rotate across conditions between subjects. Both subjects and items are random samples, and both contribute variance (Clark, 1973; Baayen et al., 2008).
198
+
199
+ ### Random Effects Structure
200
+
201
+ | Approach | Specification | When to Use | Citation |
202
+ |----------|--------------|-------------|----------|
203
+ | **Maximal** | Random intercepts + all random slopes justified by design | Default starting point | Barr et al., 2013 |
204
+ | **Parsimonious** | Remove random correlations first, then random slopes that explain ~0 variance | When maximal model fails to converge | Bates et al., 2015; Matuschek et al., 2017 |
205
+
206
+ **Convergence protocol** (Barr et al., 2013; Bates et al., 2015):
207
+
208
+ 1. Fit maximal model (all by-subject and by-item random slopes for within-unit factors)
209
+ 2. If convergence fails: remove correlations between random effects (use `||` in lme4)
210
+ 3. If still fails: remove the random slope with the smallest variance component
211
+ 4. Report the final model structure and note any simplifications
212
+
213
+ ### Distributional Considerations
214
+
215
+ Reading times are **right-skewed** and bounded below by zero. Options:
216
+
217
+ | Approach | When to Use | Citation |
218
+ |----------|-------------|----------|
219
+ | **Log-transform** | Simple; commonly used; adequate for many datasets | Standard in psycholinguistics |
220
+ | **Inverse transform (-1000/RT)** | Can outperform log for skewed RT data | Baayen & Milin, 2010 |
221
+ | **Generalized LMM (Gamma)** | Models the skewness directly; avoids back-transformation issues | Lo & Andrews, 2015 |
222
+ | **Raw RT with residual checks** | When effects are large and residuals are approximately normal | Baayen et al., 2008 |
223
+
224
+ **Recommendation**: Start with **raw reading times** in the LMM. Check residual plots. If residuals are non-normal, apply **log-transformation** or fit a **GLMM with Gamma family and identity link** (Lo & Andrews, 2015).
225
+
226
+ ### Multiple Comparisons
227
+
228
+ When analyzing multiple reading measures on the same data:
229
+
230
+ - **Do not apply Bonferroni correction across measures** -- each measure tests a different theoretical question (Clifton et al., 2007)
231
+ - **Do correct** within each measure if testing multiple contrasts
232
+ - Report effect sizes and confidence intervals alongside p-values
233
+
234
+ ## Typical Fixation Duration Benchmarks
235
+
236
+ These values serve as sanity checks for data quality (Rayner, 1998, 2009):
237
+
238
+ | Measure | Typical Range (Silent Reading) | Citation |
239
+ |---------|-------------------------------|----------|
240
+ | **Average fixation duration** | **200-250 ms** | Rayner, 1998, 2009 |
241
+ | **Average saccade length** | **7-9 characters** (~2 degrees) | Rayner, 1998, 2009 |
242
+ | **Regression rate** | **10-15%** of all saccades | Rayner, 1998 |
243
+ | **Word skipping rate** | **Content words ~15%; function words ~35%** | Rayner, 2009 |
244
+ | **Fixation duration range** | **50-500 ms** (bulk of distribution) | Rayner, 1998 |
245
+
246
+ If your data substantially deviates from these benchmarks, check calibration quality, task instructions, and participant compliance.
247
+
248
+ ## Common Pitfalls
249
+
250
+ 1. **Using only total reading time**: TRT conflates early and late processing. If you only report TRT, you cannot determine when the effect arose. Always report at least one first-pass measure (GD) and one late measure (GPT or TRT) (Clifton et al., 2007).
251
+
252
+ 2. **Ignoring spillover effects**: Many effects appear 1-2 words downstream of the critical word, especially for syntactic manipulations. Always analyze the spillover region (Rayner, 1998; Rayner & Pollatsek, 1989).
253
+
254
+ 3. **Substituting zero for skipped words**: Skipped words should be treated as missing data for first-pass measures, not as zero reading time. Substituting zero artificially deflates means and inflates variance.
255
+
256
+ 4. **Using ANOVA instead of LMMs**: F1/F2 ANOVA is outdated for psycholinguistic data. LMMs with crossed random effects properly handle the variance structure (Baayen et al., 2008; Barr et al., 2013).
257
+
258
+ 5. **Over-interpreting first fixation duration**: FFD is contaminated by refixation planning. When a substantial proportion of words receive multiple first-pass fixations, GD is more informative (Rayner, 2009).
259
+
260
+ 6. **Defining ROIs post-hoc**: Selecting regions of interest after seeing the data inflates Type I error. Define ROIs a priori based on linguistic theory.
261
+
262
+ 7. **Ignoring comprehension accuracy**: If participants are not reading for comprehension (accuracy < 80%), eye-movement patterns are not interpretable as reflecting normal reading processes (Rayner et al., 2006).
263
+
264
+ 8. **Not reporting data loss**: Always report the percentage of trials excluded at each cleaning step and the percentage of words skipped in the critical region.
265
+
266
+ ## Minimum Reporting Checklist
267
+
268
+ Based on Clifton et al. (2007) and current standards in psycholinguistics:
269
+
270
+ - [ ] Eye-tracker model and sampling rate (minimum **1000 Hz** recommended; **500 Hz** acceptable; Rayner, 2009)
271
+ - [ ] Viewing distance and display specifications (font size, characters per degree)
272
+ - [ ] Calibration procedure and accuracy threshold (typically < **0.5 degrees** average error)
273
+ - [ ] Fixation duration cutoffs (lower and upper bounds) with citations
274
+ - [ ] Data cleaning steps and percentage of data excluded at each step
275
+ - [ ] Skipping rates for the critical region by condition
276
+ - [ ] ROI definitions with linguistic justification
277
+ - [ ] All relevant reading measures (at minimum: GD, GPT, TRT for the critical region; GD for spillover)
278
+ - [ ] Statistical model specification (random effects structure, any transformations)
279
+ - [ ] Software for data analysis (with version)
280
+ - [ ] Comprehension question accuracy (mean, exclusion threshold)
281
+ - [ ] Number of participants and items after exclusions
282
+
283
+ ## References
284
+
285
+ - Baayen, R. H., Davidson, D. J., & Bates, D. M. (2008). Mixed-effects modeling with crossed random effects for subjects and items. *Journal of Memory and Language*, 59, 390-412.
286
+ - Baayen, R. H., & Milin, P. (2010). Analyzing reaction times. *International Journal of Psychological Research*, 3, 12-28.
287
+ - Barr, D. J., Levy, R., Scheepers, C., & Tily, H. J. (2013). Random effects structure for confirmatory hypothesis testing: Keep it maximal. *Journal of Memory and Language*, 68, 255-278.
288
+ - Bates, D., Kliegl, R., Vasishth, S., & Baayen, H. (2015). Parsimonious mixed models. arXiv:1506.04967.
289
+ - Clark, H. H. (1973). The language-as-fixed-effect fallacy: A critique of language statistics in psychological research. *Journal of Verbal Learning and Verbal Behavior*, 12, 335-359.
290
+ - Clifton, C., Staub, A., & Rayner, K. (2007). Eye movements in reading words and sentences. In R. P. G. van Gompel, M. H. Fischer, W. S. Murray, & R. L. Hill (Eds.), *Eye movements: A window on mind and brain*. Amsterdam: Elsevier.
291
+ - Drieghe, D., Rayner, K., & Pollatsek, A. (2008). Mislocated fixations can account for parafoveal-on-foveal effects in eye movements during reading. *Quarterly Journal of Experimental Psychology*, 61, 1239-1249.
292
+ - Lo, S., & Andrews, S. (2015). To transform or not to transform: Using generalized linear mixed models to analyse reaction time data. *Frontiers in Psychology*, 6, 1171.
293
+ - Matuschek, H., Kliegl, R., Vasishth, S., Baayen, H., & Bates, D. (2017). Balancing Type I error and power in linear mixed models. *Journal of Memory and Language*, 94, 305-315.
294
+ - McConkie, G. W., & Rayner, K. (1975). The span of the effective stimulus during a fixation in reading. *Perception & Psychophysics*, 17, 578-586.
295
+ - Rayner, K. (1975). The perceptual span and peripheral cues in reading. *Cognitive Psychology*, 7, 65-81.
296
+ - Rayner, K. (1998). Eye movements in reading and information processing: 20 years of research. *Psychological Bulletin*, 124, 372-422.
297
+ - Rayner, K. (2009). The 35th Sir Frederick Bartlett Lecture: Eye movements and attention in reading, scene perception, and visual search. *Quarterly Journal of Experimental Psychology*, 62, 1457-1506.
298
+ - Rayner, K., Chace, K. H., Slattery, T. J., & Ashby, J. (2006). Eye movements as reflections of comprehension processes in reading. *Scientific Studies of Reading*, 10, 241-255.
299
+ - Rayner, K., & Pollatsek, A. (1989). *The psychology of reading*. Englewood Cliffs, NJ: Prentice Hall.
300
+
301
+ See `references/measure-computation-guide.md` for step-by-step computation procedures and worked examples.
@@ -0,0 +1,195 @@
1
+ # Reading Time Measure Computation Guide
2
+
3
+ This reference file supplements the main `SKILL.md` with step-by-step procedures for computing eye-tracking reading measures and handling edge cases.
4
+
5
+ ## 1. Measure Computation Procedures
6
+
7
+ ### 1.1 First Fixation Duration (FFD)
8
+
9
+ **Definition**: Duration of the first fixation landing on the word/region during first-pass reading.
10
+
11
+ **Computation**:
12
+ 1. Identify all fixations on the region during the first pass (first entry from the left until the eyes leave the region in either direction)
13
+ 2. Take the duration of the **first** of these fixations
14
+ 3. If the region was skipped during first pass: **missing data** (not zero)
15
+
16
+ **Edge cases**:
17
+ - If the reader enters the region via a regression from the right: this is **not** first pass. First pass requires entry from the left (i.e., progressive reading direction)
18
+ - If there is only one first-pass fixation, FFD = SFD = GD
19
+
20
+ ### 1.2 Single Fixation Duration (SFD)
21
+
22
+ **Definition**: Duration of the fixation on a word, only for trials where the word received exactly one first-pass fixation.
23
+
24
+ **Computation**:
25
+ 1. Identify first-pass fixations on the region
26
+ 2. If exactly **one** fixation occurred: SFD = that fixation's duration
27
+ 3. If zero fixations (skip) or multiple fixations: SFD is **missing** for that trial
28
+
29
+ **When to use**: SFD provides a cleaner measure of early lexical access than FFD because it excludes cases where refixation planning may have shortened the initial fixation (Rayner, 2009). However, conditioning on single-fixation trials introduces selection bias -- participants with longer words or more difficult conditions may have fewer single-fixation trials.
30
+
31
+ ### 1.3 Gaze Duration (GD)
32
+
33
+ **Definition**: Sum of all first-pass fixation durations on the word/region.
34
+
35
+ **Computation**:
36
+ 1. Identify all fixations on the region during first pass
37
+ 2. Sum their durations
38
+ 3. If skipped: **missing data**
39
+
40
+ **This is the default first-pass reading time measure** and should be reported in virtually all eye-tracking reading studies (Rayner, 1998, 2009).
41
+
42
+ ### 1.4 Go-Past Time (GPT) / Regression Path Duration
43
+
44
+ **Definition**: Time from first fixating the region until first fixating any region to the right of the current region. Includes any time spent regressing to earlier parts of the sentence.
45
+
46
+ **Computation**:
47
+ 1. Record the timestamp of the first fixation on the region (first pass)
48
+ 2. Record the timestamp of the first fixation on any region to the **right** of the current region
49
+ 3. GPT = timestamp_right - timestamp_region_entry
50
+ 4. This includes:
51
+ - Time fixating the current region
52
+ - Time fixating any regions to the left (regressions)
53
+ - Time fixating the current region again (if the reader returned)
54
+
55
+ **Edge cases**:
56
+ - If the reader never progresses past the region (e.g., trial ends with regressions): GPT is typically coded as **missing** or the total remaining reading time
57
+ - If the region is skipped: GPT = 0 from the perspective of that region (but typically treated as missing)
58
+
59
+ **Critical difference from GD**: GPT includes regression time. If GPT >> GD, the reader experienced difficulty and regressed to earlier material before continuing.
60
+
61
+ ### 1.5 Total Reading Time (TRT)
62
+
63
+ **Definition**: Sum of all fixation durations on the word/region across the entire trial.
64
+
65
+ **Computation**:
66
+ 1. Sum the durations of every fixation that lands on the region, regardless of pass
67
+ 2. If the word was never fixated (skipped on first pass and never revisited): **missing data** or **zero**, depending on convention
68
+
69
+ **Note**: Some researchers include zero for never-fixated words in TRT analyses. The convention should be stated explicitly. The more common approach is to treat never-fixated words as missing.
70
+
71
+ ### 1.6 Second-Pass Reading Time
72
+
73
+ **Definition**: TRT minus first-pass gaze duration. Captures only re-reading.
74
+
75
+ **Computation**:
76
+ 1. Second-pass RT = TRT - GD
77
+ 2. If the word was only fixated during first pass: second-pass RT = **0**
78
+ 3. If the word was skipped on first pass but fixated later: second-pass RT = sum of all (non-first-pass) fixations
79
+
80
+ ### 1.7 Regression Probability (Reg-out)
81
+
82
+ **Definition**: Binary variable -- did the reader make at least one regression from the current region during first-pass reading?
83
+
84
+ **Computation**:
85
+ 1. During first-pass reading of the region, did any saccade leave the region going **leftward** (toward earlier text)?
86
+ 2. Yes = 1, No = 0
87
+ 3. If region was skipped: **missing**
88
+
89
+ **Statistical note**: Because this is a binary outcome, analyze with **logistic mixed-effects models** (GLMM with binomial family), not linear models (Jaeger, 2008).
90
+
91
+ ### 1.8 Regression-In Probability
92
+
93
+ **Definition**: Binary variable -- did the reader regress back to this region from a downstream region at any point?
94
+
95
+ **Computation**:
96
+ 1. After first-pass reading of the region, was there any subsequent fixation on this region?
97
+ 2. Yes = 1, No = 0
98
+
99
+ ## 2. Handling Multi-Word Regions
100
+
101
+ When the region of interest spans multiple words (e.g., a relative clause, a prepositional phrase):
102
+
103
+ ### First-Pass Measures for Multi-Word Regions
104
+
105
+ - **First-pass reading time (region-level)**: Sum of all fixation durations from first entering the region until leaving it (in either direction). This is the region-level analog of gaze duration (Rayner, 1998).
106
+ - Entry and exit are defined by the region boundaries, not word boundaries.
107
+
108
+ ### Regression Path Duration for Multi-Word Regions
109
+
110
+ - GPT for a multi-word region = time from first fixation in the region until the eyes first land on any word **to the right** of the region.
111
+
112
+ ### Reporting Convention
113
+
114
+ When using multi-word regions, always also report word-level analyses for individual words within the region, especially the first and last words, to assess where within the region effects arise.
115
+
116
+ ## 3. Data Cleaning Pipeline
117
+
118
+ ### Step 1: Track Loss Removal
119
+
120
+ Remove trials where the eye-tracker lost the eye signal for substantial periods. Most eye-tracking software flags these automatically. Criterion: if > **20%** of the trial duration is track-loss, exclude the trial.
121
+
122
+ ### Step 2: Fixation Merging
123
+
124
+ Merge short fixations that are likely parts of a single fixation broken by brief track loss or microsaccades:
125
+
126
+ - If a fixation is < **80 ms** and the next fixation is within **1 character position** (or **0.5 degrees**): merge by adding the short fixation's duration to the adjacent fixation (Rayner & Pollatsek, 1989)
127
+ - Some researchers use **40 ms** as the merge threshold; report the value used
128
+
129
+ ### Step 3: Fixation Duration Filtering
130
+
131
+ After merging:
132
+ - Exclude fixations < **80 ms** (Rayner & Pollatsek, 1989; Inhoff & Radach, 1998)
133
+ - Exclude fixations > **800 ms** (Rayner & Pollatsek, 1989) or > **1000 ms** (alternative convention)
134
+ - Report the percentage of fixations excluded at each threshold
135
+
136
+ ### Step 4: Trial-Level Exclusions
137
+
138
+ - Exclude trials with blinks on the critical region
139
+ - Exclude trials where the critical word was the first or last fixation in the trial (contaminated by initial positioning and wrap-up effects)
140
+ - Exclude trials where comprehension question was answered incorrectly (optional; depends on theory)
141
+
142
+ ### Step 5: Participant Exclusions
143
+
144
+ - Exclude participants with < **80%** comprehension accuracy (Rayner et al., 2006)
145
+ - Exclude participants with > **30%** track-loss rate
146
+ - Exclude participants whose average fixation duration is more than **2.5 SD** from the group mean
147
+
148
+ ### Reporting Template
149
+
150
+ ```
151
+ Data from N participants were analyzed. X participants were excluded
152
+ for low comprehension accuracy (<80%; n = X), excessive track loss
153
+ (>30%; n = X), or outlier fixation patterns (>2.5 SD from mean; n = X).
154
+ Fixations shorter than 80 ms within one character of the next fixation
155
+ were merged; remaining fixations shorter than 80 ms (X% of data) and
156
+ longer than 800 ms (X% of data) were excluded. Trials with track
157
+ loss on the critical region were removed (X% of trials).
158
+ ```
159
+
160
+ ## 4. Typical Effect Sizes
161
+
162
+ These values provide calibration for what magnitudes of effects are expected (Rayner, 2009; Clifton et al., 2007):
163
+
164
+ | Effect | Measure | Typical Magnitude | Citation |
165
+ |--------|---------|-------------------|----------|
166
+ | Word frequency (high vs. low) | GD | **30-60 ms** | Rayner, 1998; Inhoff & Rayner, 1986 |
167
+ | Predictability (high vs. low cloze) | GD | **20-40 ms** | Rayner & Well, 1996 |
168
+ | Garden-path effect | GPT | **50-200 ms** | Frazier & Rayner, 1982 |
169
+ | Plausibility violation | GD | **20-50 ms** (early); GPT **40-100 ms** (late) | Rayner et al., 2004 |
170
+ | Spillover effects | GD on n+1 | **10-30 ms** | Rayner & Pollatsek, 1989 |
171
+
172
+ ## 5. Software for Computing Reading Measures
173
+
174
+ | Software | Language | Features | Reference |
175
+ |----------|----------|----------|-----------|
176
+ | **EyeDoctor / EyeTrack** | Java | Classic Rayner lab tools for sentence reading | Stracuzzi & Kinsey, 2009 |
177
+ | **eyetrackingR** | R | General eye-tracking analysis | Dink & Ferguson, 2015 |
178
+ | **Robodoc** | Python/R | Automated reading measure computation | (various implementations) |
179
+ | **SR Research Data Viewer** | Standalone | EyeLink-specific analysis | SR Research, 2017 |
180
+ | **popEye** | R | Automated computation of all standard reading measures | Risse, 2015 |
181
+ | **em2** | R | Eye movement measures for reading | Logacev & Vasishth, 2006 |
182
+
183
+ ## References
184
+
185
+ - Clifton, C., Staub, A., & Rayner, K. (2007). Eye movements in reading words and sentences. In R. P. G. van Gompel et al. (Eds.), *Eye movements: A window on mind and brain*. Elsevier.
186
+ - Frazier, L., & Rayner, K. (1982). Making and correcting errors during sentence comprehension: Eye movements in the analysis of structurally ambiguous sentences. *Cognitive Psychology*, 14, 178-210.
187
+ - Inhoff, A. W., & Radach, R. (1998). Definition and computation of oculomotor measures in the study of cognitive processes. In G. Underwood (Ed.), *Eye guidance in reading and scene perception*. Elsevier.
188
+ - Inhoff, A. W., & Rayner, K. (1986). Parafoveal word processing during eye fixations in reading: Effects of word frequency. *Perception & Psychophysics*, 40, 431-439.
189
+ - Jaeger, T. F. (2008). Categorical data analysis: Away from ANOVAs (transformation or not) and towards logit mixed models. *Journal of Memory and Language*, 59, 434-446.
190
+ - Rayner, K. (1998). Eye movements in reading and information processing: 20 years of research. *Psychological Bulletin*, 124, 372-422.
191
+ - Rayner, K. (2009). The 35th Sir Frederick Bartlett Lecture: Eye movements and attention in reading, scene perception, and visual search. *Quarterly Journal of Experimental Psychology*, 62, 1457-1506.
192
+ - Rayner, K., & Pollatsek, A. (1989). *The psychology of reading*. Englewood Cliffs, NJ: Prentice Hall.
193
+ - Rayner, K., & Well, A. D. (1996). Effects of contextual constraint on eye movements in reading: A further examination. *Psychonomic Bulletin & Review*, 3, 504-509.
194
+ - Rayner, K., Warren, T., Juhasz, B. J., & Liversedge, S. P. (2004). The effect of plausibility on eye movements in reading. *Journal of Experimental Psychology: Learning, Memory, and Cognition*, 30, 1290-1301.
195
+ - Rayner, K., Chace, K. H., Slattery, T. J., & Ashby, J. (2006). Eye movements as reflections of comprehension processes in reading. *Scientific Studies of Reading*, 10, 241-255.