Python For Econometrics

Runs an empirical economics project in Python to the same standard a Stata project is held to, and says honestly when Python is the wrong tool. Covers project layout with scripts rather than notebooks, a pinned and lockfiled environment, pandas operations mapped one by one onto their Stata equivalents with the silent traps named, estimation with statsmodels, linearmodels and the fixed effects packages, clustered and robust covariance including the sample alignment trap, seeded generators rather than global random state, testing a data pipeline, and exporting tables and monochrome figures that match the house standard. Use this skill when someone is doing econometrics in Python, converting a project between Stata and Python, asking how to cluster standard errors in Python, how to do a Stata command in pandas, why a merge lost rows, how to make a notebook reproducible, or whether to use Python or Stata for a piece of work. Trigger also on vague requests such as "should I do this in Python", "my notebook gives d

ingridleiria af3dd71 35.1 KB Updated

File contents

ingridleiria/breaktalk-skills/tree/main/phd-research/python-for-econometrics commit af3dd7102d

Frequently asked questions

npx skillmds@latest add ingridleiria/python-for-econometrics