@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.
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -0
- package/skills/01_Meta-Skills/contribute-skill/SKILL.md +277 -0
- package/skills/01_Meta-Skills/contribute-skills-via-pr/SKILL.md +163 -0
- package/skills/01_Meta-Skills/paper-to-skill/SKILL.md +435 -0
- package/skills/01_Meta-Skills/paper-to-skill/references/extraction-guide.md +286 -0
- package/skills/01_Meta-Skills/paper-to-skill/references/skill-template.md +250 -0
- package/skills/01_Meta-Skills/repo-to-skill/SKILL.md +289 -0
- package/skills/01_Meta-Skills/share-case/SKILL.md +253 -0
- package/skills/01_Meta-Skills/share-usage/README.md +63 -0
- package/skills/01_Meta-Skills/share-usage/SKILL.md +395 -0
- package/skills/01_Meta-Skills/verify-skill/SKILL.md +331 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/SKILL.md +194 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/effect-sizes.md +352 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/sample-size-guide.md +407 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-statistics/SKILL.md +361 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-statistics/references/common-analyses.md +517 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-visualization/SKILL.md +292 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-visualization/references/plot-recipes.md +709 -0
- package/skills/02_Cross-Domain_Foundation/research-literacy/SKILL.md +286 -0
- package/skills/02_Cross-Domain_Foundation/research-literacy/references/common-assumptions.md +320 -0
- package/skills/02_Cross-Domain_Foundation/research-literacy/references/planning-template.md +143 -0
- package/skills/03_Cognitive_Psychology/alternative-uses-task-designer/SKILL.md +197 -0
- package/skills/03_Cognitive_Psychology/alternative-uses-task-designer/references/instruction-templates.md +60 -0
- package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/SKILL.md +246 -0
- package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/references/classic-paradigms.md +435 -0
- package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/references/design-principles.md +256 -0
- package/skills/03_Cognitive_Psychology/creativity-self-efficacy-mediation/SKILL.md +270 -0
- package/skills/03_Cognitive_Psychology/creativity-self-efficacy-mediation/references/lavaan-templates.md +172 -0
- package/skills/03_Cognitive_Psychology/divergent-thinking-scoring/SKILL.md +238 -0
- package/skills/03_Cognitive_Psychology/divergent-thinking-scoring/references/scoring-rubric.md +143 -0
- package/skills/03_Cognitive_Psychology/drift-diffusion-model/SKILL.md +203 -0
- package/skills/03_Cognitive_Psychology/drift-diffusion-model/references/fitting-guide.md +571 -0
- package/skills/03_Cognitive_Psychology/drift-diffusion-model/references/model-variants.md +427 -0
- package/skills/03_Cognitive_Psychology/evidence-accumulation-selector/SKILL.md +310 -0
- package/skills/03_Cognitive_Psychology/evidence-accumulation-selector/references/ez-diffusion-formulas.md +137 -0
- package/skills/03_Cognitive_Psychology/signal-detection-analysis/SKILL.md +300 -0
- package/skills/03_Cognitive_Psychology/signal-detection-analysis/references/application-guide.md +278 -0
- package/skills/03_Cognitive_Psychology/signal-detection-analysis/references/sdt-formulas.md +318 -0
- package/skills/03_Cognitive_Psychology/visual-search-array-generator/SKILL.md +283 -0
- package/skills/03_Cognitive_Psychology/visual-search-array-generator/references/array-generation-parameters.yaml +111 -0
- package/skills/04_Psycholinguistics/reading-time-analysis/SKILL.md +301 -0
- package/skills/04_Psycholinguistics/reading-time-analysis/references/measure-computation-guide.md +195 -0
- package/skills/04_Psycholinguistics/self-paced-reading-designer/SKILL.md +257 -0
- package/skills/04_Psycholinguistics/self-paced-reading-designer/references/analysis-guide.md +356 -0
- package/skills/04_Psycholinguistics/self-paced-reading-designer/references/region-segmentation.md +266 -0
- package/skills/04_Psycholinguistics/sentence-stimulus-norming/SKILL.md +346 -0
- package/skills/04_Psycholinguistics/sentence-stimulus-norming/references/lexical-databases-guide.md +184 -0
- package/skills/05_EEG_ERP/eeg-paradigm-designer/SKILL.md +226 -0
- package/skills/05_EEG_ERP/eeg-paradigm-designer/references/component-paradigm-map.md +276 -0
- package/skills/05_EEG_ERP/eeg-paradigm-designer/references/timing-parameters.md +244 -0
- package/skills/05_EEG_ERP/eeg-preprocessing-pipeline-guide/SKILL.md +367 -0
- package/skills/05_EEG_ERP/eeg-preprocessing-pipeline-guide/references/parameter-lookup-tables.md +138 -0
- package/skills/05_EEG_ERP/erp-analysis/SKILL.md +185 -0
- package/skills/05_EEG_ERP/erp-analysis/references/erp-components.md +447 -0
- package/skills/05_EEG_ERP/erp-analysis/references/preprocessing-pipeline.md +277 -0
- package/skills/05_EEG_ERP/erp-analysis/references/statistical-approaches.md +351 -0
- package/skills/05_EEG_ERP/mne-python-guide/SKILL.md +174 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/decoding.md +178 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/io_formats.md +160 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/preprocessing.md +259 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/simulation.md +173 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/source_localization.md +234 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/statistics.md +196 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/time_frequency.md +165 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/visualization.md +175 -0
- package/skills/06_fMRI_Neuroimaging/brain-connectivity-modeler/SKILL.md +317 -0
- package/skills/06_fMRI_Neuroimaging/brain-connectivity-modeler/references/method-implementation-guide.md +116 -0
- package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/SKILL.md +296 -0
- package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/references/design-matrix-guide.md +214 -0
- package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/references/statistical-inference.md +288 -0
- package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/SKILL.md +274 -0
- package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/references/quality-control.md +336 -0
- package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/references/step-by-step-pipeline.md +380 -0
- package/skills/06_fMRI_Neuroimaging/fmri-task-design-guide/SKILL.md +264 -0
- package/skills/06_fMRI_Neuroimaging/fmri-task-design-guide/references/design-optimization-examples.md +114 -0
- package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/SKILL.md +273 -0
- package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/references/decoding-methods.md +170 -0
- package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/references/rsa-guide.md +266 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/SKILL.md +123 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/database-subjects.md +179 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/dataset-types.md +208 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/freesurfer-fmriprep.md +162 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/mapping-transforms.md +181 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/mni-utils.md +207 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/surface-analysis.md +219 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/visualization.md +251 -0
- package/skills/07_Computational_Modeling/act-r-model-builder/SKILL.md +297 -0
- package/skills/07_Computational_Modeling/act-r-model-builder/references/model-patterns.md +197 -0
- package/skills/07_Computational_Modeling/act-r-model-builder/references/parameter-table.yaml +204 -0
- package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/SKILL.md +294 -0
- package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/references/diagnostics-checklist.md +351 -0
- package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/references/prior-selection-guide.md +241 -0
- package/skills/07_Computational_Modeling/parameter-recovery-checker/SKILL.md +269 -0
- package/skills/07_Computational_Modeling/parameter-recovery-checker/references/recovery-diagnostics.md +207 -0
- package/skills/08_Computational_Neuroscience/brain-connectivity-modeler/SKILL.md +317 -0
- package/skills/08_Computational_Neuroscience/brain-connectivity-modeler/references/method-implementation-guide.md +116 -0
- package/skills/08_Computational_Neuroscience/neural-decoding-analysis/SKILL.md +273 -0
- package/skills/08_Computational_Neuroscience/neural-decoding-analysis/references/decoding-methods.md +170 -0
- package/skills/08_Computational_Neuroscience/neural-decoding-analysis/references/rsa-guide.md +266 -0
- package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/SKILL.md +305 -0
- package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/references/data-requirements.md +60 -0
- package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/references/method-comparison.md +151 -0
- package/skills/08_Computational_Neuroscience/spiking-network-model-builder/SKILL.md +376 -0
- package/skills/08_Computational_Neuroscience/spiking-network-model-builder/references/hh-parameters.md +117 -0
- package/skills/08_Computational_Neuroscience/spiking-network-model-builder/references/network-regimes.md +130 -0
- package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/SKILL.md +258 -0
- package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/references/indicator-parameters.md +242 -0
- package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/references/pipeline-details.md +211 -0
- package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/SKILL.md +261 -0
- package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/references/opsin-catalog.md +124 -0
- package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/references/stimulation-parameters.md +304 -0
- package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/SKILL.md +367 -0
- package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/references/disconnection-guide.md +152 -0
- package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/references/vlsm-pipeline.md +182 -0
- package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/SKILL.md +250 -0
- package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/references/deficit-profiles.md +302 -0
- package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/references/test-catalog.md +304 -0
- package/skills/11_Developmental_Cognition/infant-looking-time-designer/SKILL.md +345 -0
- package/skills/11_Developmental_Cognition/infant-looking-time-designer/references/age-parameters.yaml +186 -0
- package/skills/12_Social_Cognition/tom-task-selector/SKILL.md +379 -0
- package/skills/12_Social_Cognition/tom-task-selector/references/task-database.md +317 -0
- package/skills/13_Visualization/nature-figure/README.md +442 -0
- package/skills/13_Visualization/nature-figure/SKILL.md +60 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-01-bar-charts.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-02-line-trends.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-03-heatmaps.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-04-scatter-bubble.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-05-radar-polar.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-06-distributions.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-07-forest-interval.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-08-area-stacked.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-09-image-plates.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-10-network-matrix.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_motivation.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_observation.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_observation_distillation.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_contrastive.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_results_CEDAR.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_results_IEDB.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_schematic.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/RNAGenScape_schematic.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/figures/ablation.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/figures/comparison.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/plot_ablation.py +86 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/plot_comparison.py +109 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/diffusion_swiss_roll.py +97 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/diffusion_swiss_roll.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_GeneRegulatory.pdf +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_GeneRegulatory.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_Trajectory.pdf +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_Trajectory.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/figX_comparison_Ablation.pdf +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/figX_comparison_Ablation.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_Ablation.py +64 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_GeneRegulatory.py +74 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_Trajectory.py +74 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/figures/idea.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/figures/illustration.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/plot_idea.py +76 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/plot_illustration.py +404 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_FPGM/figures/freq_prior.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_FPGM/plot_freq_prior.py +146 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_ablation_Cancer.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_ablation_IEDB.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_comparison_Cancer.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_comparison_IEDB.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/plot_bars.py +216 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/raw_data.py +125 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/manifold.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/manifold_holes.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_comparison_optimization.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_comparison_speed.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_sweep.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_comparison.py +228 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_hole_manifold.py +82 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_manifold.py +61 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_sweep.py +77 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/figures/comparison_posttraining.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/figures/comparison_radar.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/plot_comparison_radar.py +173 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/plot_posttraining.py +82 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/brute_force.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/correctness_by_category.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/correctness_by_subcategory.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/rewriting.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/selfcorrection_math.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_brute_force.py +248 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_correctness_by_category.py +132 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_correctness_by_subcategory.py +131 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_rewriting.py +105 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_selfcorrection_math.py +99 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/figures/composition_heatmap.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/figures/trend_by_month.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/plot_composition.py +81 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/plot_trend.py +125 -0
- package/skills/13_Visualization/nature-figure/assets/gallery/fig1-material-mechanism-rich.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/gallery/fig2-spatial-imaging-rich.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/gallery/fig3-in-vivo-efficacy-rich.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/gallery/fig4-single-cell-systems-rich.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/gallery/fig5-validation-perturbation-rich.png +0 -0
- package/skills/13_Visualization/nature-figure/evals/evals.json +37 -0
- package/skills/13_Visualization/nature-figure/manifest.yaml +57 -0
- package/skills/13_Visualization/nature-figure/references/api.md +428 -0
- package/skills/13_Visualization/nature-figure/references/backend-selection.md +100 -0
- package/skills/13_Visualization/nature-figure/references/chart-types.md +281 -0
- package/skills/13_Visualization/nature-figure/references/common-patterns.md +350 -0
- package/skills/13_Visualization/nature-figure/references/demos.md +65 -0
- package/skills/13_Visualization/nature-figure/references/design-theory.md +436 -0
- package/skills/13_Visualization/nature-figure/references/figure-contract.md +93 -0
- package/skills/13_Visualization/nature-figure/references/nature-2026-observations.md +112 -0
- package/skills/13_Visualization/nature-figure/references/qa-contract.md +119 -0
- package/skills/13_Visualization/nature-figure/references/r-template-index.md +66 -0
- package/skills/13_Visualization/nature-figure/references/r-workflow.md +161 -0
- package/skills/13_Visualization/nature-figure/references/tutorials.md +251 -0
- package/skills/13_Visualization/nature-figure/static/core/contract.md +29 -0
- package/skills/13_Visualization/nature-figure/static/core/stance.md +37 -0
- package/skills/13_Visualization/nature-figure/static/fragments/backend/python.md +37 -0
- package/skills/13_Visualization/nature-figure/static/fragments/backend/r.md +44 -0
- package/skills/14_Writing/markdown-report-writing/SKILL.md +306 -0
- package/skills/14_Writing/markdown-report-writing/references/compatibility-matrix.md +72 -0
- package/skills/14_Writing/markdown-report-writing/references/templates.md +299 -0
- package/skills/15_Others/neuroimaging-power-guide/SKILL.md +324 -0
- package/skills/15_Others/neuroimaging-power-guide/references/effect-size-lookup-tables.md +102 -0
- package/skills/15_Others/neuroimaging-sample-size-calculator/SKILL.md +330 -0
- package/skills/15_Others/neuroimaging-sample-size-calculator/references/worked-examples.md +220 -0
package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/sample-size-guide.md
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
# Sample Size Guide for Cognitive Science and Neuroscience
|
|
2
|
+
|
|
3
|
+
This guide provides detailed sample size recommendations organized by research modality, along with power analysis methods, tools, and reporting templates.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Power Analysis Methods by Design Type
|
|
8
|
+
|
|
9
|
+
### 1.1 Analytic (Closed-Form) Solutions
|
|
10
|
+
|
|
11
|
+
Best for simple, well-understood designs where statistical distributions are known.
|
|
12
|
+
|
|
13
|
+
| Design | Test | Tool / Function | Key Parameters |
|
|
14
|
+
|--------|------|----------------|----------------|
|
|
15
|
+
| Two-group comparison | Independent t-test | G*Power; `pwr::pwr.t.test()` in R | d, alpha, power, allocation ratio |
|
|
16
|
+
| Paired comparison | Paired t-test | G*Power; `pwr::pwr.t.test(type="paired")` | d_z, alpha, power |
|
|
17
|
+
| One-way k-group | One-way ANOVA | G*Power; `pwr::pwr.anova.test()` | f, k, alpha, power |
|
|
18
|
+
| Factorial ANOVA | F-test (interaction) | G*Power | f, df_numerator, df_denominator |
|
|
19
|
+
| Correlation | Pearson r | G*Power; `pwr::pwr.r.test()` | r, alpha, power |
|
|
20
|
+
| Regression | Multiple regression | G*Power; `pwr::pwr.f2.test()` | f², num_predictors, alpha, power |
|
|
21
|
+
| Proportion | Chi-square / Fisher | G*Power; `pwr::pwr.chisq.test()` | w, df, alpha, power |
|
|
22
|
+
|
|
23
|
+
**Converting between effect size metrics for analytic power analysis:**
|
|
24
|
+
|
|
25
|
+
- Cohen's f = d / 2 (for two groups)
|
|
26
|
+
- Cohen's f² = R²_change / (1 - R²_full)
|
|
27
|
+
- Partial eta² = f² / (1 + f²)
|
|
28
|
+
|
|
29
|
+
(See `effect-sizes.md` for the full conversion table; formulas from Borenstein et al., 2009; Lakens, 2013.)
|
|
30
|
+
|
|
31
|
+
### 1.2 Simulation-Based Power Analysis
|
|
32
|
+
|
|
33
|
+
Required for complex designs where analytic solutions are unavailable or inaccurate.
|
|
34
|
+
|
|
35
|
+
**When to use simulation:**
|
|
36
|
+
- Mixed-effects / multilevel models
|
|
37
|
+
- Non-normal data or ceiling/floor effects
|
|
38
|
+
- Complex repeated-measures designs with missing data
|
|
39
|
+
- Mediation / moderation analyses
|
|
40
|
+
- Machine learning classification accuracy
|
|
41
|
+
- Any design where the test statistic's distribution is not well-characterized
|
|
42
|
+
|
|
43
|
+
**Recommended tools:**
|
|
44
|
+
|
|
45
|
+
| Tool | Language | Best For | Reference |
|
|
46
|
+
|------|----------|----------|-----------|
|
|
47
|
+
| **simr** | R | Linear/generalized mixed-effects models | Green & MacLeod, 2016 |
|
|
48
|
+
| **Superpower** | R / Shiny | Factorial ANOVA, repeated measures | Lakens & Caldwell, 2021 |
|
|
49
|
+
| **paramtest** | R | General parameter recovery simulation | Hughes, 2017 |
|
|
50
|
+
| **fMRIpower** | MATLAB/R | fMRI group-level analyses | Mumford & Nichols, 2008 |
|
|
51
|
+
| **NeuroPowerTools** | Web app | fMRI power for whole-brain analyses | Durnez et al., 2016 |
|
|
52
|
+
| **PANGEA** | Web app | Mixed-effects models for psycholinguistics | Westfall, 2016 |
|
|
53
|
+
|
|
54
|
+
**Basic simulation workflow (pseudocode):**
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
for i in 1:10000:
|
|
58
|
+
data = simulate_data(N=planned_N, effect=expected_effect, noise=expected_noise)
|
|
59
|
+
result = run_analysis(data)
|
|
60
|
+
store(result.p_value)
|
|
61
|
+
|
|
62
|
+
power = mean(p_values < alpha)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Minimum **10,000 iterations** recommended for stable power estimates (with 95% CI width < 1%; Morris et al., 2019).
|
|
66
|
+
|
|
67
|
+
### 1.3 Sensitivity Analysis
|
|
68
|
+
|
|
69
|
+
Always complement a prospective power analysis with a sensitivity analysis:
|
|
70
|
+
|
|
71
|
+
- **Question**: "Given my planned N, what is the minimum effect size I can detect with 80% power?"
|
|
72
|
+
- **Why**: Helps evaluate whether the detectable effect is theoretically meaningful
|
|
73
|
+
- **Tool**: All tools above support sensitivity analysis by solving for effect size given N and power
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 2. Sample Size Recommendations by Modality
|
|
78
|
+
|
|
79
|
+
### 2.1 Behavioral Studies
|
|
80
|
+
|
|
81
|
+
**Source basis**: Brysbaert (2019) "How many participants do we really need?" — comprehensive review of effect sizes in experimental psychology.
|
|
82
|
+
|
|
83
|
+
#### Between-Subjects Designs
|
|
84
|
+
|
|
85
|
+
| Expected Effect Size | Required N per Group (80% power) | Required N per Group (90% power) | Source |
|
|
86
|
+
|---------------------|--------------------------------|--------------------------------|--------|
|
|
87
|
+
| Large (d = 0.8) | n = 26 | n = 34 | G*Power calculation; Cohen, 1988 |
|
|
88
|
+
| Medium (d = 0.5) | n = 64 | n = 86 | G*Power calculation; Brysbaert, 2019 |
|
|
89
|
+
| Small-medium (d = 0.4) | n = 100 | n = 133 | G*Power calculation; Brysbaert, 2019 |
|
|
90
|
+
| Small (d = 0.2) | n = 394 | n = 527 | G*Power calculation; Cohen, 1988 |
|
|
91
|
+
|
|
92
|
+
> **Brysbaert's (2019) recommendation**: For typical between-subjects behavioral experiments, plan for d = 0.4 and recruit **n = 100 per group** for 80% power, or **n = 130 per group** for 90% power. The median published effect in psychology is d = 0.4 after correcting for publication bias.
|
|
93
|
+
|
|
94
|
+
#### Within-Subjects Designs
|
|
95
|
+
|
|
96
|
+
Within-subjects designs are more powerful due to the elimination of between-subject variance. The relevant effect size is d_z (standardized mean difference of within-subject difference scores).
|
|
97
|
+
|
|
98
|
+
| Expected d_z | Required N (80% power) | Required N (90% power) | Source |
|
|
99
|
+
|---|---|---|---|
|
|
100
|
+
| Large (d_z = 0.8) | n = 15 | n = 19 | G*Power calculation |
|
|
101
|
+
| Medium (d_z = 0.5) | n = 34 | n = 44 | G*Power calculation; Brysbaert, 2019 |
|
|
102
|
+
| Small-medium (d_z = 0.4) | n = 52 | n = 68 | G*Power calculation; Brysbaert, 2019 |
|
|
103
|
+
| Small (d_z = 0.2) | n = 199 | n = 265 | G*Power calculation |
|
|
104
|
+
|
|
105
|
+
> **Brysbaert's (2019) recommendation**: For typical within-subjects behavioral experiments, plan for d_z = 0.4 and recruit **n = 50-65** for 80% power. The within-subjects advantage typically converts a between-subjects d of 0.4 to d_z of 0.4-0.6, depending on the correlation between conditions.
|
|
106
|
+
|
|
107
|
+
#### Interaction Effects
|
|
108
|
+
|
|
109
|
+
Interaction effects are typically **half the size** of main effects in factorial designs (Brysbaert, 2019; Simonsohn, 2014). This means:
|
|
110
|
+
|
|
111
|
+
- If main effect d = 0.5, expect interaction d ≈ 0.25
|
|
112
|
+
- Sample sizes for interactions are **~4x larger** than for main effects
|
|
113
|
+
- **Recommendation**: N = 100-200 per cell for between-subjects interactions (Brysbaert, 2019)
|
|
114
|
+
|
|
115
|
+
### 2.2 EEG / ERP Studies
|
|
116
|
+
|
|
117
|
+
**Source basis**: Boudewyn et al. (2018), Clayson et al. (2019), Luck (2014).
|
|
118
|
+
|
|
119
|
+
#### Participant-Level Recommendations
|
|
120
|
+
|
|
121
|
+
| Effect Type | Recommended N | Basis | Source |
|
|
122
|
+
|---|---|---|---|
|
|
123
|
+
| Large ERP effect (e.g., P300 oddball, N400 strong violation) | n = 15-25 | d > 1.0, within-subjects | Boudewyn et al., 2018 |
|
|
124
|
+
| Medium ERP effect (e.g., N400 priming, LPP) | n = 25-40 | d = 0.5-1.0, within-subjects | Boudewyn et al., 2018 |
|
|
125
|
+
| Small ERP effect or between-group comparison | n = 40-80 | d = 0.3-0.5 | Clayson et al., 2019; Luck, 2014 |
|
|
126
|
+
| ERP individual differences / correlational | n = 50-100+ | r = 0.20-0.30 | Clayson et al., 2019 |
|
|
127
|
+
| Oscillatory power (within-subjects) | n = 20-40 | d = 0.5-1.0 | Cohen, 2014 (Analyzing Neural Time Series Data) |
|
|
128
|
+
| EEG clinical group comparison | n = 30-50 per group | d = 0.3-0.6 | Barry et al., 2003; Umbricht & Krljes, 2005 |
|
|
129
|
+
|
|
130
|
+
#### Trial-Level Considerations
|
|
131
|
+
|
|
132
|
+
ERP power depends on **both** participant N and trial count per condition. The signal-to-noise ratio of the ERP average improves as sqrt(trial count).
|
|
133
|
+
|
|
134
|
+
| Component | Minimum Trials per Condition | Recommended Trials | Source |
|
|
135
|
+
|---|---|---|---|
|
|
136
|
+
| P300 (oddball) | 20-30 | 36+ | Boudewyn et al., 2018; Cohen & Polich, 1997 |
|
|
137
|
+
| N400 | 20-30 | 40+ | Boudewyn et al., 2018 |
|
|
138
|
+
| ERN/Pe | 6-8 (minimum) | 15+ | Olvet & Hajcak, 2009; Pontifex et al., 2010 |
|
|
139
|
+
| N170 | 30-40 | 50+ | Rossion & Jacques, 2011 |
|
|
140
|
+
| MMN | 100+ (standard/deviant ratio) | 150+ deviants | Duncan et al., 2009 |
|
|
141
|
+
| LPP | 20-30 | 40+ | Hajcak et al., 2010 |
|
|
142
|
+
| N2pc | 100+ | 200+ | Luck, 2012 |
|
|
143
|
+
|
|
144
|
+
> **Key insight**: Increasing trial count is often more efficient than increasing participant count for ERP research, especially when the dominant source of noise is within-subject trial-to-trial variability (Luck, 2014, Ch. 4; Boudewyn et al., 2018).
|
|
145
|
+
|
|
146
|
+
#### EEG-Specific Power Analysis Approach
|
|
147
|
+
|
|
148
|
+
No standard power analysis tool exists for EEG/ERP. Recommended approaches:
|
|
149
|
+
|
|
150
|
+
1. **Simulation**: Generate synthetic ERP data with expected component amplitude, latency jitter, and noise level; simulate N participants with T trials; run planned analysis; repeat (Baker et al., 2021)
|
|
151
|
+
2. **Pilot-based**: Use pilot data to estimate within-condition variability; compute d_z; use standard paired t-test power formula (but account for measurement noise)
|
|
152
|
+
3. **Literature-based**: Use effect sizes from `effect-sizes.md` Section 2 with standard within-subjects formulas
|
|
153
|
+
|
|
154
|
+
### 2.3 fMRI Studies
|
|
155
|
+
|
|
156
|
+
**Source basis**: Cremers et al. (2017), Poldrack et al. (2017), Marek et al. (2022), Mumford & Nichols (2008).
|
|
157
|
+
|
|
158
|
+
#### Task-Based fMRI
|
|
159
|
+
|
|
160
|
+
| Analysis Type | Recommended N | Basis | Source |
|
|
161
|
+
|---|---|---|---|
|
|
162
|
+
| Within-subjects contrast (robust, e.g., motor/visual) | n = 20-30 | d > 1.0 in target region | Desmond & Glover, 2002 |
|
|
163
|
+
| Within-subjects contrast (cognitive, e.g., WM, inhibition) | n = 30-50 | d = 0.5-0.8 in target region | Cremers et al., 2017; Poldrack et al., 2017 |
|
|
164
|
+
| Between-group comparison (e.g., patient vs. control) | n = 30-50 per group | d = 0.5-0.8 | Button et al., 2013 |
|
|
165
|
+
| Whole-brain analysis (with FWE/FDR correction) | 1.5-2x ROI N | Correction reduces effective power | Mumford & Nichols, 2008 |
|
|
166
|
+
| Multivariate (MVPA) classification | n = 30-40+ | Depends on within-subject classification accuracy | Varoquaux, 2018 |
|
|
167
|
+
|
|
168
|
+
> **Whole-brain vs. ROI**: Whole-brain analyses with cluster-based or voxel-wise correction require larger samples than ROI analyses. A study powered for an ROI analysis (N = 25) may have only 30-50% power for whole-brain analysis of the same effect (Mumford & Nichols, 2008).
|
|
169
|
+
|
|
170
|
+
#### fMRI Individual Differences and Brain-Behavior Associations
|
|
171
|
+
|
|
172
|
+
| Analysis Type | Recommended N | Basis | Source |
|
|
173
|
+
|---|---|---|---|
|
|
174
|
+
| Brain-behavior correlation (single ROI) | n = 80-100 (minimum) | Expected r = 0.20-0.30 | Cremers et al., 2017 |
|
|
175
|
+
| Brain-wide association study (BWAS) | n = 1,000-2,000+ | Expected r = 0.05-0.15 with correction | Marek et al., 2022 |
|
|
176
|
+
| Structural brain-cognition correlation | n = 100+ | Expected r = 0.10-0.20 | Marek et al., 2022 |
|
|
177
|
+
| Functional connectivity-behavior | n = 200+ | Expected r = 0.05-0.15 | Marek et al., 2022 |
|
|
178
|
+
| Prediction / machine learning (cross-validated) | n = 200+ | Stability of prediction accuracy | Varoquaux, 2018 |
|
|
179
|
+
|
|
180
|
+
> **Marek et al. (2022) warning**: In the ABCD dataset (N ~ 4,000), brain-behavior effect sizes were nearly all r < 0.16. Studies with N < 100 produced inflated and unreplicable correlations. Brain-wide association studies require **thousands** of participants for reproducibility.
|
|
181
|
+
|
|
182
|
+
#### fMRI Power Analysis Tools
|
|
183
|
+
|
|
184
|
+
| Tool | What It Does | Source |
|
|
185
|
+
|---|---|---|
|
|
186
|
+
| **fMRIpower** | Estimates power for fMRI group analyses based on pilot data, accounting for temporal autocorrelation and spatial smoothness | Mumford & Nichols, 2008 |
|
|
187
|
+
| **NeuroPowerTools** | Web-based calculator for peak-level and cluster-level power in whole-brain analysis | Durnez et al., 2016 |
|
|
188
|
+
| **PowerMap** | Voxel-wise power maps from pilot fMRI data | Joyce & Hayasaka, 2012 |
|
|
189
|
+
|
|
190
|
+
#### fMRI-Specific Considerations
|
|
191
|
+
|
|
192
|
+
- **Scanner time constraints**: Each participant typically requires 1-2 hours. Budget recruitment accordingly.
|
|
193
|
+
- **Run structure**: More runs per participant can improve within-subject reliability (Roth et al., 2021)
|
|
194
|
+
- **Test-retest reliability**: Task fMRI has moderate reliability (ICC ≈ 0.30-0.60; Elliott et al., 2020), which attenuates observed correlations. Correct for unreliability when estimating required N for correlational analyses: r_observed = r_true * sqrt(ICC_x * ICC_y) (Spearman, 1904).
|
|
195
|
+
|
|
196
|
+
### 2.4 Clinical and Developmental Studies
|
|
197
|
+
|
|
198
|
+
**Source basis**: Button et al. (2013), Leucht et al. (2015), Mills & Tamnes (2014).
|
|
199
|
+
|
|
200
|
+
#### Clinical Group Comparisons
|
|
201
|
+
|
|
202
|
+
| Study Type | Recommended N per Group | Expected Effect | Source |
|
|
203
|
+
|---|---|---|---|
|
|
204
|
+
| Patient vs. control (large effect, e.g., Alzheimer's memory) | n = 15-25 | d = 1.0-2.0 | Backman et al., 2005 |
|
|
205
|
+
| Patient vs. control (medium effect, e.g., depression cognition) | n = 30-50 | d = 0.5-0.8 | Button et al., 2013; Snyder, 2013 |
|
|
206
|
+
| Patient vs. control (small effect, e.g., at-risk groups) | n = 80-100+ | d = 0.2-0.4 | Button et al., 2013 |
|
|
207
|
+
| Pharmacological RCT (active vs. placebo) | n = 50-100+ per arm | d = 0.3-0.5 (typical drug effect) | Leucht et al., 2015; Cipriani et al., 2018 |
|
|
208
|
+
| Psychotherapy RCT | n = 30-60 per arm | d = 0.5-1.0 | Hofmann & Smits, 2008 |
|
|
209
|
+
|
|
210
|
+
> **Recruitment reality**: Clinical populations have inherent recruitment constraints. When N cannot reach the ideal target, consider: (1) within-subjects designs to increase power, (2) Bayesian sequential designs that allow early stopping, (3) multi-site collaboration (Button et al., 2013).
|
|
211
|
+
|
|
212
|
+
#### Developmental Studies
|
|
213
|
+
|
|
214
|
+
| Design | Recommended N per Age Group | Consideration | Source |
|
|
215
|
+
|---|---|---|---|
|
|
216
|
+
| Cross-sectional age comparison (2 groups) | n = 25-40 per group | Between-groups, moderate effect | Mills & Tamnes, 2014 |
|
|
217
|
+
| Cross-sectional (3+ age groups) | n = 20-30 per group | One-way ANOVA, medium f | Mills & Tamnes, 2014 |
|
|
218
|
+
| Longitudinal (2 time points) | n = 30-50 (plan for 20-30% attrition) | Paired comparison, account for dropout | Mills & Tamnes, 2014 |
|
|
219
|
+
| Longitudinal (3+ time points) | n = 50-100+ (plan for cumulative attrition) | Growth curve modeling | Curran et al., 2010 |
|
|
220
|
+
| Accelerated longitudinal | n = 20-30 per cohort, 3+ cohorts | Mixed-effects model | Duncan et al., 2006 |
|
|
221
|
+
|
|
222
|
+
> **Attrition planning**: Developmental studies should recruit 20-30% above the target N to account for attrition, especially in longitudinal designs spanning years (Mills & Tamnes, 2014). For infant studies, expect 30-50% data loss from fussiness and motion (Stets et al., 2012).
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## 3. Rules of Thumb Summary Table
|
|
227
|
+
|
|
228
|
+
A single-page reference for quick sample size estimation. **These are starting points, not substitutes for formal power analysis.**
|
|
229
|
+
|
|
230
|
+
| Modality | Design | Rule of Thumb N | Effect Size Assumption | Source |
|
|
231
|
+
|---|---|---|---|---|
|
|
232
|
+
| Behavioral | Between-groups, medium | 30-50 per group | d = 0.5-0.8 | Brysbaert, 2019 |
|
|
233
|
+
| Behavioral | Between-groups, small | 80-100 per group | d = 0.2-0.4 | Brysbaert, 2019 |
|
|
234
|
+
| Behavioral | Within-subjects, medium | 30-50 total | d_z = 0.4-0.6 | Brysbaert, 2019 |
|
|
235
|
+
| Behavioral | Interaction | 100-200 per cell | d = 0.2-0.3 (interaction) | Brysbaert, 2019; Simonsohn, 2014 |
|
|
236
|
+
| EEG/ERP | Within-subjects, large component | 15-25 | d > 1.0 | Boudewyn et al., 2018 |
|
|
237
|
+
| EEG/ERP | Within-subjects, medium component | 25-40 | d = 0.5-1.0 | Boudewyn et al., 2018 |
|
|
238
|
+
| EEG/ERP | Group comparison | 30-50 per group | d = 0.3-0.6 | Clayson et al., 2019 |
|
|
239
|
+
| fMRI | Task, within-subjects | 30-50 | d = 0.5-1.0 | Cremers et al., 2017; Poldrack et al., 2017 |
|
|
240
|
+
| fMRI | Task, between-groups | 30-50 per group | d = 0.5-0.8 | Button et al., 2013 |
|
|
241
|
+
| fMRI | Individual differences / correlation | 100+ (ideally 200+) | r = 0.10-0.20 | Marek et al., 2022 |
|
|
242
|
+
| fMRI | Brain-wide association (BWAS) | 1,000-2,000+ | r < 0.16 | Marek et al., 2022 |
|
|
243
|
+
| Clinical | Patient vs. control | 30-50 per group | d = 0.5-0.8 | Button et al., 2013 |
|
|
244
|
+
| Clinical | Pharmacological RCT | 50-100 per arm | d = 0.3-0.5 | Leucht et al., 2015 |
|
|
245
|
+
| Developmental | Cross-sectional | 25-40 per age group | d = 0.5-1.0 | Mills & Tamnes, 2014 |
|
|
246
|
+
| Developmental | Longitudinal | 50-100 (plan +30% attrition) | varies | Mills & Tamnes, 2014 |
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## 4. Power Analysis Reporting for Preregistration
|
|
251
|
+
|
|
252
|
+
### 4.1 Required Elements
|
|
253
|
+
|
|
254
|
+
A complete power analysis report (for preregistration, grant applications, or methods sections) must include all of the following (Lakens, 2022):
|
|
255
|
+
|
|
256
|
+
1. **Effect size estimate and justification**
|
|
257
|
+
- The specific effect size value used (e.g., d = 0.5, r = 0.20)
|
|
258
|
+
- How it was obtained: meta-analysis, pilot study, SESOI, or literature
|
|
259
|
+
- The specific source (author, year, study/meta-analysis)
|
|
260
|
+
|
|
261
|
+
2. **Statistical test planned**
|
|
262
|
+
- The exact test to be used (e.g., paired t-test, mixed ANOVA, linear mixed model)
|
|
263
|
+
- Any corrections for multiple comparisons
|
|
264
|
+
|
|
265
|
+
3. **Alpha level**
|
|
266
|
+
- Typically 0.05 (two-tailed)
|
|
267
|
+
- If one-tailed, justify the directional hypothesis
|
|
268
|
+
- If adjusted (e.g., 0.025 for two primary outcomes), explain
|
|
269
|
+
|
|
270
|
+
4. **Target power level**
|
|
271
|
+
- 80% (minimum acceptable) or 90% (recommended)
|
|
272
|
+
- Justify the choice
|
|
273
|
+
|
|
274
|
+
5. **Resulting sample size**
|
|
275
|
+
- The computed N from the power analysis
|
|
276
|
+
- Adjustments for expected attrition, exclusion, or data quality loss
|
|
277
|
+
|
|
278
|
+
6. **Tool and method used**
|
|
279
|
+
- Name and version of software (e.g., G*Power 3.1.9.7, simr R package v1.0.7)
|
|
280
|
+
- For simulations: number of iterations, data generation model
|
|
281
|
+
|
|
282
|
+
7. **Sensitivity analysis** (recommended)
|
|
283
|
+
- Minimum detectable effect at the planned N
|
|
284
|
+
|
|
285
|
+
### 4.2 Reporting Template
|
|
286
|
+
|
|
287
|
+
> **Power analysis**: We determined our target sample size based on [meta-analytic estimate / pilot data / smallest effect size of interest]. [Author (Year)] reported an effect size of [d/r/f = X] for [specific paradigm]. Using [G*Power 3.1 / simr / simulation], we computed the required sample size for a [specific test] with alpha = [.05], power = [.80/.90], [two-tailed/one-tailed]. The analysis indicated a minimum of N = [X] per [group/condition]. To account for an anticipated [X]% [attrition/exclusion] rate, we plan to recruit N = [adjusted X] participants [per group / total].
|
|
288
|
+
>
|
|
289
|
+
> A sensitivity analysis indicated that with our planned sample of N = [X], we would have 80% power to detect effects as small as [d/r = X], which is [smaller than / comparable to / larger than] the expected effect.
|
|
290
|
+
|
|
291
|
+
### 4.3 Common Mistakes in Power Analysis Reporting
|
|
292
|
+
|
|
293
|
+
| Mistake | Why It Is Wrong | Correct Approach |
|
|
294
|
+
|---|---|---|
|
|
295
|
+
| "Based on Cohen (1988), we used a medium effect size (d = 0.5)" | Cohen's benchmarks are generic, not calibrated to any specific paradigm | Use paradigm-specific meta-analytic estimates or SESOI |
|
|
296
|
+
| "Based on our pilot study (N = 12), d = 1.2" | Pilot effect sizes are unreliable and inflated | Use lower CI bound or apply shrinkage; prefer meta-analytic estimates (Albers & Lakens, 2018) |
|
|
297
|
+
| "We will recruit 20 participants" (no justification) | No power analysis reported | Conduct and report formal power analysis |
|
|
298
|
+
| Power analysis for main effect, but primary hypothesis is interaction | Interactions require ~4x the N of main effects | Power the study for the interaction (Brysbaert, 2019) |
|
|
299
|
+
| "G*Power indicated N = 34, so we will run 34" | Does not account for attrition or data quality exclusions | Add 10-30% buffer depending on modality |
|
|
300
|
+
| Post-hoc power analysis ("observed power") | Observed power is a direct function of the p-value; it provides no additional information | Use prospective power analysis; for non-significant results, report confidence intervals instead (Hoenig & Heisey, 2001) |
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## 5. Software Reference
|
|
305
|
+
|
|
306
|
+
### 5.1 G*Power
|
|
307
|
+
|
|
308
|
+
- **Platform**: Windows, macOS (free)
|
|
309
|
+
- **Download**: https://www.psychologie.hhu.de/arbeitsgruppen/allgemeine-psychologie-und-arbeitspsychologie/gpower
|
|
310
|
+
- **Best for**: Simple designs (t-tests, ANOVA, correlations, regression)
|
|
311
|
+
- **Limitation**: Cannot handle mixed-effects models, non-standard designs
|
|
312
|
+
- **Reference**: Faul et al. (2007). G*Power 3: A flexible statistical power analysis program. *Behavior Research Methods*, 39(2), 175-191.
|
|
313
|
+
|
|
314
|
+
### 5.2 pwr (R package)
|
|
315
|
+
|
|
316
|
+
- **Install**: `install.packages("pwr")`
|
|
317
|
+
- **Best for**: Same as G*Power but scriptable and reproducible
|
|
318
|
+
- **Key functions**: `pwr.t.test()`, `pwr.r.test()`, `pwr.anova.test()`, `pwr.f2.test()`
|
|
319
|
+
- **Reference**: Champely, S. (2020). pwr: Basic functions for power analysis. R package.
|
|
320
|
+
|
|
321
|
+
### 5.3 simr (R package)
|
|
322
|
+
|
|
323
|
+
- **Install**: `install.packages("simr")`
|
|
324
|
+
- **Best for**: Power analysis for linear mixed-effects models (lme4)
|
|
325
|
+
- **Workflow**: Fit model to pilot data -> modify effect size -> `powerSim()` -> `powerCurve()`
|
|
326
|
+
- **Reference**: Green, P., & MacLeod, C. J. (2016). SIMR: An R package for power analysis of generalized linear mixed models by simulation. *Methods in Ecology and Evolution*, 7(4), 493-498.
|
|
327
|
+
|
|
328
|
+
### 5.4 Superpower (R package / Shiny app)
|
|
329
|
+
|
|
330
|
+
- **Install**: `install.packages("Superpower")`
|
|
331
|
+
- **Web app**: https://arcstats.io/shiny/anova-power/
|
|
332
|
+
- **Best for**: Factorial ANOVA designs, within/between/mixed, with exact or simulation-based power
|
|
333
|
+
- **Reference**: Lakens, D., & Caldwell, A. R. (2021). Simulation-based power analysis for factorial ANOVA designs. *Advances in Methods and Practices in Psychological Science*, 4(1).
|
|
334
|
+
|
|
335
|
+
### 5.5 fMRIpower
|
|
336
|
+
|
|
337
|
+
- **Platform**: MATLAB, R
|
|
338
|
+
- **Best for**: Power for fMRI second-level (group) analyses
|
|
339
|
+
- **Approach**: Uses pilot fMRI data to estimate effect variability; accounts for temporal autocorrelation
|
|
340
|
+
- **Reference**: Mumford, J. A., & Nichols, T. E. (2008). Power calculation for group fMRI studies accounting for arbitrary design and temporal autocorrelation. *NeuroImage*, 39(1), 261-268.
|
|
341
|
+
|
|
342
|
+
### 5.6 NeuroPowerTools
|
|
343
|
+
|
|
344
|
+
- **Platform**: Web-based (http://neuropowertools.org)
|
|
345
|
+
- **Best for**: Peak-level and cluster-level inference power for whole-brain fMRI
|
|
346
|
+
- **Reference**: Durnez, J., et al. (2016). Power and sample size calculations for fMRI studies based on the prevalence of active peaks. *bioRxiv*, 049429.
|
|
347
|
+
|
|
348
|
+
### 5.7 PANGEA
|
|
349
|
+
|
|
350
|
+
- **Platform**: Web-based
|
|
351
|
+
- **Best for**: Power analysis for psycholinguistic experiments with crossed random effects (participants and items)
|
|
352
|
+
- **Reference**: Westfall, J. (2016). PANGEA: Power ANalysis for GEneral Anova designs. Working paper.
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## References
|
|
357
|
+
|
|
358
|
+
- Albers, C., & Lakens, D. (2018). When power analyses based on pilot data are biased. *JESP*, 74, 187-195.
|
|
359
|
+
- Backman, L., et al. (2005). Cognitive impairment in preclinical Alzheimer's disease. *Brain*, 128(9), 2026-2044.
|
|
360
|
+
- Baker, D. H., et al. (2021). Power contours: Optimising sample size and precision in experimental psychology and human neuroscience. *Psychological Methods*, 26(3), 295-314.
|
|
361
|
+
- Barry, R. J., et al. (2003). A review of electrophysiology in ADHD. *Clinical Neurophysiology*, 114(2), 184-198.
|
|
362
|
+
- Borenstein, M., et al. (2009). *Introduction to Meta-Analysis*. Wiley.
|
|
363
|
+
- Boudewyn, M. A., et al. (2018). How many trials does it take to get a significant ERP effect? *Psychophysiology*, 55(6), e13049.
|
|
364
|
+
- Brysbaert, M. (2019). How many participants do we really need? *Journal of Cognition*, 2(1), 16.
|
|
365
|
+
- Button, K. S., et al. (2013). Power failure. *Nature Reviews Neuroscience*, 14(5), 365-376.
|
|
366
|
+
- Cipriani, A., et al. (2018). Comparative efficacy of antidepressants. *The Lancet*, 391(10128), 1357-1366.
|
|
367
|
+
- Clayson, P. E., et al. (2019). Methodological reporting behavior and statistical power in ERP studies. *Psychophysiology*, 56(11), e13437.
|
|
368
|
+
- Cohen, M. X. (2014). *Analyzing Neural Time Series Data*. MIT Press.
|
|
369
|
+
- Cohen, D. B., & Polich, J. (1997). On the number of trials needed for P300. *International Journal of Psychophysiology*, 25(3), 249-255.
|
|
370
|
+
- Cremers, H. R., et al. (2017). The relation between statistical power and inference in fMRI. *PLoS ONE*, 12(11), e0184923.
|
|
371
|
+
- Curran, P. J., et al. (2010). The disaggregation of within-person and between-person effects in longitudinal models. *Annual Review of Psychology*, 61, 583-607.
|
|
372
|
+
- Desmond, J. E., & Glover, G. H. (2002). Estimating sample size in functional MRI (fMRI) neuroimaging studies. *Journal of Neuroscience Methods*, 118(2), 115-128.
|
|
373
|
+
- Duncan, C. C., et al. (2009). Event-related potentials in clinical research: Guidelines for eliciting, recording, and quantifying mismatch negativity, P300, and N400. *Clinical Neurophysiology*, 120(11), 1883-1908.
|
|
374
|
+
- Duncan, T. E., et al. (2006). *An Introduction to Latent Variable Growth Curve Modeling* (2nd ed.). Psychology Press.
|
|
375
|
+
- Durnez, J., et al. (2016). Power and sample size calculations for fMRI studies. *bioRxiv*, 049429.
|
|
376
|
+
- Elliott, M. L., et al. (2020). What is the test-retest reliability of common task-functional MRI measures? *Psychological Science*, 31(7), 792-806.
|
|
377
|
+
- Faul, F., et al. (2007). G*Power 3: A flexible statistical power analysis program. *Behavior Research Methods*, 39(2), 175-191.
|
|
378
|
+
- Green, P., & MacLeod, C. J. (2016). SIMR. *Methods in Ecology and Evolution*, 7(4), 493-498.
|
|
379
|
+
- Hajcak, G., et al. (2010). The late positive potential. In *Oxford Handbook of ERP Components*.
|
|
380
|
+
- Hoenig, J. M., & Heisey, D. M. (2001). The abuse of power: The pervasive fallacy of power calculations for data analysis. *American Statistician*, 55(1), 19-24.
|
|
381
|
+
- Hofmann, S. G., & Smits, J. A. (2008). Cognitive-behavioral therapy for adult anxiety disorders. *JCCP*, 76(2), 278-286.
|
|
382
|
+
- Hughes, J. (2017). paramtest: Run a function iteratively while varying parameters. R package.
|
|
383
|
+
- Joyce, K. E., & Hayasaka, S. (2012). Development of PowerMap: A software package for statistical power calculation in neuroimaging studies. *Neuroinformatics*, 10(4), 351-365.
|
|
384
|
+
- Lakens, D. (2013). Calculating and reporting effect sizes. *Frontiers in Psychology*, 4, 863.
|
|
385
|
+
- Lakens, D. (2022). Sample size justification. *Collabra: Psychology*, 8(1), 33267.
|
|
386
|
+
- Lakens, D., & Caldwell, A. R. (2021). Simulation-based power analysis for factorial ANOVA designs. *AMPPS*, 4(1).
|
|
387
|
+
- Leucht, S., et al. (2015). Putting the efficacy of psychiatric and general medicine medication into perspective. *BJP*, 200(2), 97-106.
|
|
388
|
+
- Luck, S. J. (2012). Electrophysiological correlates of the focusing of attention. In *Cognitive Electrophysiology of Attention*.
|
|
389
|
+
- Luck, S. J. (2014). *An Introduction to the Event-Related Potential Technique* (2nd ed.). MIT Press.
|
|
390
|
+
- Marek, S., et al. (2022). Reproducible brain-wide association studies require thousands of individuals. *Nature*, 603, 654-660.
|
|
391
|
+
- Mills, K. L., & Tamnes, C. K. (2014). Methods and considerations for longitudinal structural brain imaging analysis across development. *Developmental Cognitive Neuroscience*, 9, 172-190.
|
|
392
|
+
- Morris, T. P., et al. (2019). Using simulation studies to evaluate statistical methods. *Statistics in Medicine*, 38(11), 2074-2102.
|
|
393
|
+
- Mumford, J. A., & Nichols, T. E. (2008). Power calculation for group fMRI studies. *NeuroImage*, 39(1), 261-268.
|
|
394
|
+
- Noble, S., et al. (2019). A decade of test-retest reliability of functional connectivity. *NeuroImage*, 203, 116157.
|
|
395
|
+
- Olvet, D. M., & Hajcak, G. (2009). The stability of error-related brain activity with increasing numbers of trials. *Psychophysiology*, 46(5), 957-961.
|
|
396
|
+
- Poldrack, R. A., et al. (2017). Scanning the horizon. *Nature Reviews Neuroscience*, 18(2), 115-126.
|
|
397
|
+
- Pontifex, M. B., et al. (2010). On the number of trials necessary for stabilization of error-related brain activity across the life span. *Psychophysiology*, 47(4), 767-773.
|
|
398
|
+
- Rossion, B., & Jacques, C. (2011). The N170. In *Oxford Handbook of ERP Components*.
|
|
399
|
+
- Roth, Z. N., et al. (2021). Natural scene statistics account for the representation of scene categories in human visual cortex. *Neuron*, 109(8), 1451-1461.
|
|
400
|
+
- Simonsohn, U. (2014). No-way interactions. Working paper. Available at SSRN.
|
|
401
|
+
- Snyder, H. R. (2013). Major depressive disorder and executive function. *Neuropsychology*, 27(2), 152-169.
|
|
402
|
+
- Spearman, C. (1904). The proof and measurement of association between two things. *American Journal of Psychology*, 15(1), 72-101.
|
|
403
|
+
- Stets, M., et al. (2012). Infant ERP data quality. *Developmental Neuropsychology*, 37(3), 209-225.
|
|
404
|
+
- Umbricht, D., & Krljes, S. (2005). Mismatch negativity in schizophrenia: A meta-analysis. *Schizophrenia Research*, 76(1), 1-23.
|
|
405
|
+
- Varoquaux, G. (2018). Cross-validation failure: Small sample sizes lead to large error bars. *NeuroImage*, 180, 68-77.
|
|
406
|
+
- Westfall, J. (2016). PANGEA: Power ANalysis for GEneral Anova designs. Working paper.
|
|
407
|
+
- Wykes, T., et al. (2011). A meta-analysis of cognitive remediation for schizophrenia. *AJP*, 168(5), 472-485.
|