@haybarn/ext-stats_duck-h1-5-5
v202608.6.194127
Published
A statistical computing toolkit for DuckDB — descriptive statistics, hypothesis tests, R-style distribution functions (d/p/q/r), OLS regression with HC and cluster-robust standard errors, grammar-of-graphics charts (VISUALIZE → Vega-Lite), and first-class
Maintainers
Readme
Haybarn extension: stats_duck
A statistical computing toolkit for DuckDB — descriptive statistics, hypothesis tests, R-style distribution functions (d/p/q/r), OLS regression with HC and cluster-robust standard errors, grammar-of-graphics charts (VISUALIZE → Vega-Lite), and first-class readers/writers for SAS, SPSS, and Stata files, all directly in SQL.
Source: https://github.com/KoliStat/the-stats-duck
Catalog: Haybarn community extensions
Install
npm install @haybarn/ext-stats_duck-h1-5-5
# or use the exact version:
npm install @haybarn/[email protected]npm picks the matching platform binary from the leaves below via its os / cpu / libc fields. No postinstall scripts, no network calls after npm install.
Available platforms (this version)
Installed automatically by npm install @haybarn/ext-stats_duck-h1-5-5 (npm picks the one matching your os/cpu/libc):
@haybarn/ext-stats_duck-h1-5-5-darwin-x64@haybarn/ext-stats_duck-h1-5-5-darwin-arm64@haybarn/ext-stats_duck-h1-5-5-win32-x64@haybarn/ext-stats_duck-h1-5-5-linux-x64@haybarn/ext-stats_duck-h1-5-5-linux-arm64
WebAssembly (duckdb-wasm)
Also built for duckdb-wasm. These are not installed by the meta above (npm has no wasm os/cpu to match) — install the variant matching your duckdb-wasm bundle (mvp / eh / threads) and point duckdb-wasm at the bundled asset:
@haybarn/ext-stats_duck-h1-5-5-wasm-eh@haybarn/ext-stats_duck-h1-5-5-wasm-threads@haybarn/ext-stats_duck-h1-5-5-wasm-mvp
npm install @haybarn/ext-stats_duck-h1-5-5-wasm-ehimport extUrl from '@haybarn/ext-stats_duck-h1-5-5-wasm-eh/bin/stats_duck.duckdb_extension.wasm?url';
await conn.query(`INSTALL stats_duck FROM '${extUrl}'`);
await conn.query(`LOAD stats_duck`);Use it
Once installed, the .duckdb_extension binary lands in your project's node_modules/ tree under the matching leaf. The Haybarn engine auto-discovers it at startup; from a Haybarn SQL session:
LOAD stats_duck;License
The stats_duck extension is distributed under Apache-2.0. The Haybarn engine itself is MIT-licensed.
Trademark
Haybarn is an independent derived distribution of DuckDB published by Query Farm LLC. Not affiliated with or endorsed by the DuckDB Foundation. DuckDB is a trademark of the DuckDB Foundation.
