Estimators
OLS, IV, Logit, Probit, Poisson, NegBin, Panel, VAR, VECM, GARCH, Heckman, DiD, RDD, and more.
Hayashi is a Stata-like language for applied econometrics. Native performance, modern syntax, and a plugin system that grows with your workflow.
load "wage1.csv" as df
ols(lwage ~ educ + exper + expersq, df)
logit(inlf ~ educ + age + kidslt6, df)
// pipe-friendly workflow
df |> summarize(mean(lwage), sd(educ))
OLS, IV, Logit, Probit, Poisson, NegBin, Panel, VAR, VECM, GARCH, Heckman, DiD, RDD, and more.
Native Rust, WebAssembly, or Hayashi scripts. One import syntax for everything.
Every estimator is checked against R and Python reference implementations. Results are public.
Pipes, closures, namespaces, f-strings, match expressions, and a powerful REPL.
Hardened URL handling, SSRF prevention, and sandboxed WebAssembly plugins.
Full books in English and Portuguese, plus a searchable mdBook reference.
git clone https://github.com/sheep-farm/hayashi.git
cd hayashi
cargo build --release
./target/release/hay --version
hay dist-update
Or install the latest nightly build (dev branch):
hay dist-update --nightly
Plugin system with native Rust, WebAssembly, and Hayashi script tiers. Packages install directly from GitHub.