statistical-analysis

Executes statistical analyses from research_questions.json to produce analysis_results.json.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/DamarisDeng/paper-writing-system --skill statistical-analysis-damarisdeng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: statistical-analysis
Source: https://github.com/DamarisDeng/paper-writing-system/tree/main/workflow/skills/statistical-analysis
Command: npx skills add https://github.com/DamarisDeng/paper-writing-system --skill statistical-analysis-damarisdeng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, scipy, statsmodels, lifelines, xgboost, scikit-learn, matplotlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Automates the end-to-end execution of statistical analyses to transform research questions and datasets into reproducible results, including descriptive statistics, primary analyses, and sensitivity checks.

Core Features & Use Cases

  • Descriptive and inferential analyses driven by a research_questions.json workflow, including regression, causal inference, and survival analyses.
  • End-to-end pipeline orchestration: data preparation, analytic dataset creation, table 1 generation, analysis plan, primary analysis, and sensitivity analyses with standardized reporting.
  • Reproducibility and auditability: progress tracking, helper utilities, and structured JSON outputs ready for publication-quality reporting.

Quick Start

Load your prepared data along with research_questions.json and run the statistical-analysis workflow to generate analysis_results.json.

Frequently Asked Questions about statistical-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate regression and survival analysis from research questions using a Python dataset?

Automate regression and survival analysis by loading a prepared dataset alongside a research_questions.json file. The workflow identifies and executes the correct statistical analyses, generating structured analysis_results.json and accompanying reports for reproducible research outputs.

What statistical methods are needed for causal inference and biostatistics across longitudinal data?

Causal inference and biostatistics across longitudinal data require inferential methods like regression and survival analysis. The workflow applies these methods automatically to cross-sectional and longitudinal designs, producing standardized reports and sensitivity checks.

Can I use statsmodels and lifelines for reproducible statistical analysis with pandas?

Yes, you can use statsmodels and lifelines with pandas for reproducible statistical analysis. The workflow requires a Python environment with these libraries to drive descriptive statistics, causal inference, and survival analyses from prepared datasets into structured outputs.

What's the best way to generate Table 1 descriptive statistics and sensitivity checks for publication?

Generate Table 1 descriptive statistics and sensitivity checks by running the end-to-end statistical pipeline. It orchestrates data preparation, analytic dataset creation, and analysis plan execution to produce publication-quality reporting and auditability.

Do I need xgboost and scikit-learn to run causal inference and biostatistics workflows?

No, xgboost and scikit-learn are optional machine learning libraries for the workflow. Core causal inference and biostatistics workflows run on required dependencies like numpy, pandas, scipy, statsmodels, and lifelines.

Why does my statistical analysis pipeline fail to produce structured analysis_results.json outputs?

Statistical analysis pipelines fail to produce analysis_results.json outputs if the Python environment lacks required dependencies like statsmodels or lifelines, or if the prepared dataset and research_questions.json file are not loaded correctly into the workflow.