Stata Modernizer

•
1.9k
•

Refactors legacy Stata code into high-performance, maintainable, and portable scripts using modern data handling patterns.

This skill is designed to upgrade aging Stata codebases by identifying and replacing inefficient legacy patterns with modern best practices. It streamlines empirical research workflows by migrating scripts to use Stata Frames for better memory management, gtools for high-speed data processing, and reghdfe for complex fixed-effects models. By removing anti-patterns like hardcoded directories and manual data preservation, it ensures that research code is not only faster but also reproducible and easier to maintain across different environments.

主要功能

01Optimizes data aggregation and transformation using high-performance gtools.
02Migrates legacy workflows to Stata Frames for efficient multi-dataset management.
03Eliminates inefficient patterns such as #delimit and excessive preserve/restore cycles.
041,860 GitHub stars
05Implements reghdfe for advanced, high-dimensional fixed-effects regressions.
06Replaces hardcoded paths with portable, project-relative directory structures.

使用场景

01Optimizing slow data processing tasks on large-scale administrative datasets.
02Standardizing a research team's codebase to improve reproducibility and collaboration.
03Refactoring a decade-old social science research script for a modern publication.