agentsclimarketplace

Data analysis

Skill brycewang-stanford/Auto-Empirical-Research-Skills/skills/14-luischanci-claude-code-research-starter/dot-claude/skills/data-analysis

🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.

Install
npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill data-analysis

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

End-to-end R data analysis workflow from exploration through regression to publication-ready tables and figures.

SKILL.md

2.4 KB, as published. Nobody here has run it

Data Analysis

Run an end-to-end data analysis in R through 5 phases.

Phase 1: Setup and Data Loading

  • Read R code conventions from .claude/rules/r-code-conventions.md
  • Create script with proper header (title, author, purpose, inputs, outputs)
  • Load packages with library() (never require())
  • Set set.seed() if stochastic elements are involved
  • Load data using relative paths

Phase 2: Exploratory Data Analysis

  • Summary statistics (mean, sd, min, max, N)
  • Missingness patterns
  • Distributions of key variables
  • Bivariate relationships
  • Time patterns (if panel data)
  • Group comparisons
  • Save diagnostics to output/diagnostics/

Phase 3: Main Analysis

  • Use fixest for panel data with fixed effects (see /econometrics-r for detailed patterns)
  • Use lm/glm for cross-section
  • Cluster standard errors appropriately
  • Run multiple specifications (simple to complex)
  • Report both statistical and economic significance
  • For causal inference (IV, DiD, RDD), see /causal-inference-r for diagnostics and modern estimators
  • For spatial econometrics, see /econometrics-r for spdep/spatialreg patterns

Phase 4: Publication-Ready Output

  • Tables: modelsummary (preferred) or stargazer, export as .tex and .html
  • Figures: ggplot2 with project theme, explicit dimensions, white background, 300 DPI
  • Export figures as .pdf and .png

Phase 5: Save and Review

  • saveRDS() for all computed objects
  • Run r-reviewer agent on generated script
  • Address Critical/High issues

Script Structure Template

# ==============================================================================
# Title: [Analysis Name]
# Author: [Name]
# Date: [YYYY-MM-DD]
# Purpose: [What this script does]
# Inputs: [Data files]
# Outputs: [Tables, figures, RDS files]
# ==============================================================================

# 0. Setup ----
library(tidyverse)
library(fixest)
library(modelsummary)

# 1. Data Loading ----

# 2. Exploratory Analysis ----

# 3. Main Analysis ----

# 4. Tables and Figures ----

# 5. Export ----

All scripts saved to scripts/R/, all outputs to output/.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.