-- Load the extension
LOAD stata_dta;
-- Read Stata file directly into DuckDB
SELECT * FROM read_stata_dta('data/survey.dta');
-- Query with SQL operations
SELECT region, AVG(income)
FROM read_stata_dta('data/survey.dta')
GROUP BY region;
High-performance DuckDB extension for reading Stata .dta files
Downloadusing Targets
add(x, y) = x + y
@target a = 1
@target b = 2
@target c = add(a, b)
@get c
Computational pipeline management for Julia
Downloadusing Kezdi
@use "distances.dta"
@replace distance = 5 @if distance < 5
A data analysis package for economists
Downloadxt2treatments y, treatment(treatmentB) control(treatmentA) pre(1) post(3) weighting(equal)
event studies with two treatments
Downloadxthdidregress ra (y) (d), group(i)
eventbaseline, pre(5) post(5) baseline(-1) graph
Correct Event Study After `xthdidregress`
Downloadhere
import delimited "${here}/data/raw/bls/employment.csv"
A simpler way to find your files.
Download