econometricsmodels
統計・計量経済学の分析手法を提供するPython APIです。分析GUIアプリ「economicon」のエンジンとして使われることを主な用途としており、スクリプト・プログラムからの組み込みやすさ(型補完・バリデーション・動的な組み立て)を優先した設計になっています。
- 計算コアは Rust で実装し、PyO3 で薄くPythonにバインディングしています。
- データ入力は polars DataFrameのみに限定し、ArrowのゼロコピーでRust側に受け渡します。
y ~ x1 + x2のようなformula文字列パースは採用せず、被説明変数は列名(str)、説明変数は列名のリスト(list[str])、推定オプションは専用クラスのインスタンスとして渡します。
インストール
pip install econometricsmodels
対応Pythonバージョンは3.12以上です。
クイックスタート
import polars as pl
from econometricsmodels import OLS
df = pl.DataFrame(
{
"y": [2.1, 3.9, 6.2, 8.1, 9.8],
"x1": [1.0, 2.0, 3.0, 4.0, 5.0],
}
)
result = OLS(df, y="y", x=["x1"]).fit()
print(result.params) # {"const": ..., "x1": ...}
print(result.std_errors) # {"const": ..., "x1": ...}
print(result.r_squared)
不均一分散に頑健な標準誤差(HC0〜HC3)・クラスター標準誤差・HAC(Newey-West)標準誤差への切り替えなど、詳しい使い方はdocs/getting-started.mdを参照してください。
実装状況
現在実装済みなのは Phase 1(基礎回帰)のうち OLS(最小二乗法)のみ です。区分回帰・WLSを含む他の手法は未着手です。
0.x.xのプレリリース期間中は、マイナーバージョンの変更でも破壊的変更が入る可能性があります。
ライセンス
Metadata
Release files for econometricsmodels 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| econometricsmodels-0.1.0.tar.gz | 99.0 kB | Details |
Built distributions (wheels)
Total release size: 66.0 MB
Release files / econometricsmodels-0.1.0.tar.gz
| Download URL | econometricsmodels-0.1.0.tar.gz |
|---|---|
| Size | 99.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1182666d1b6f4321abfa8a37140ea1cee23122dcaa19be0e3dbef487583e02f
|
|
BLAKE2b-256 checksum How to use checksums |
44cf5eee5f604af5b7b634df6a6e59b59621f39f90120bfe119c9b5f66fee7fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp314-cp314-win_amd64.whl
| Download URL | econometricsmodels-0.1.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c6a1dfda95313d89cbbe09d93af3b0e152bfb89c4f5f7ad349ffa0095a5f29aa
|
|
BLAKE2b-256 checksum How to use checksums |
15b23a7cf3f6e30d2e46223177a0ff3a9732054d2c6b0edcd9e3eddd3011386f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | econometricsmodels-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
2fad06d05c552e904a557249b0aba6bfd86505c864fae8120141a232c9cc584e
|
|
BLAKE2b-256 checksum How to use checksums |
21e4f9088a7fc29f9ad1f2be14cbabd42e20ed0373918f80f4e36609f758f0c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | econometricsmodels-0.1.0-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
415dfe83e87b529a1dd07e0a304d94db407ea3861aa88d9c7e97f536c13f1864
|
|
BLAKE2b-256 checksum How to use checksums |
81b6d09bec0fc8177147d48ec93c7fbcaab60a09384b8f18e91d4ce83275fe7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp314-cp314-macosx_10_12_x86_64.whl
| Download URL | econometricsmodels-0.1.0-cp314-cp314-macosx_10_12_x86_64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | CPython 3.14 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
0b012dd82b08ac06538503e5cf0e1c071352412567ffbbbcf44038943ead0ba4
|
|
BLAKE2b-256 checksum How to use checksums |
0417be86b132fe142e6dfb6b920470197dd5e81279b7edfa72cc9decf920cc86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp313-cp313-win_amd64.whl
| Download URL | econometricsmodels-0.1.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
56da3c439d80aec5ad818bfbd1f7ce7e50a6ea756258c6fbb894666645319784
|
|
BLAKE2b-256 checksum How to use checksums |
1149fc370000e15e4ee8a4619f8c5d24fd4c43c7c55879820e7eb3b92ddb03cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | econometricsmodels-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b749bf3b974b0a20645d93dd0ec37ae1bb2938f4b655e9cbc9f94a3ccb79436e
|
|
BLAKE2b-256 checksum How to use checksums |
c7e84532a8a4ad88d5baed97012ffb1c4e0fb59801885c9fc5c7e017d1d5e0be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | econometricsmodels-0.1.0-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
441253f4e69779e085b19292cbb5525b2dd3f7fff1170959efc735b46105711d
|
|
BLAKE2b-256 checksum How to use checksums |
6f8007f89f2651437f65afee0abb56eb8533bad88446d677117b1a7a18550627
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl
| Download URL | econometricsmodels-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | CPython 3.13 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
c688378ff320e43534a5eb9ede0b7b996322dcc80c378fc0792eca1b47eb0d67
|
|
BLAKE2b-256 checksum How to use checksums |
9d812c21bb950a41fed882c681faa3a9743193917a7adc3ed87eb12f15a0337d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp312-cp312-win_amd64.whl
| Download URL | econometricsmodels-0.1.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c878a98d2ee5763a587813c5aac1af11b6a1c79f936d170089fd2205952da4ec
|
|
BLAKE2b-256 checksum How to use checksums |
f18e6d0ccc97adfe74219a741e37dec72333d729079ccb8321fcf732d3dfda8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | econometricsmodels-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
4901ead331a31f2c77db29f7bff960491d7344f9653e5d040e248cf9d7f235dd
|
|
BLAKE2b-256 checksum How to use checksums |
5c0120b417039e79ccd0b82761ce91df97cf92b36db2b867f35313d6055a2146
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | econometricsmodels-0.1.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
49ddf240028c661c2a85d896a9ed3516a5f906f81b5c760c6e2529a930a78375
|
|
BLAKE2b-256 checksum How to use checksums |
994270ac436194b7bcc0ea62a1fae5b1a54ef33e60ae259608eee14d51a3fd6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / econometricsmodels-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | econometricsmodels-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | CPython 3.12 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
b63e7f16015095aa8dcba63ecdf3b8527d95d7ee440653035799cdf39644a83a
|
|
BLAKE2b-256 checksum How to use checksums |
9a674cf1a1864d86b3391a71d59a46ab15880b789c8c83024b03e6b3a678efc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency log