Skip to main content

causalmodels in Python.

instalation

$ pip install causalmodels

usage

>>> import numpy as np
>>> import pandas as pd
>>> import causalmodels as cm
>>> a = np.random.laplace(size=500)
>>> b = np.random.laplace(size=500) + a
>>> c = np.random.laplace(size=500) + a + b
>>> data = pd.DataFrame({'a': a, 'b': b, 'c': c})
>>> model = cm.DirectLiNGAM(data.values, data.columns)
>>> results = model.fit()
>>> results.order
[2, 1, 0]
>>> result.plot()

Metadata

Release files for causalmodels 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for causalmodels 0.4.0
File Size Uploaded
causalmodels-0.4.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for causalmodels 0.4.0
File Interpreter ABI Platform
causalmodels-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / causalmodels-0.4.0.tar.gz

Download URL causalmodels-0.4.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
df8ac5ae1deec28a508a979f89ff452d63f742111d7ed8479967499f38b1354b
BLAKE2b-256 checksum
How to use checksums
61c2fa784305f0a1e9f4aada243efc7cc02c371dddc607f30bf56aa117d10f4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / causalmodels-0.4.0-py3-none-any.whl

Download URL causalmodels-0.4.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41744c7ff2b91b9272333ee44fe00257fb35d714c03986439e9f6ea20ba1f7c4
BLAKE2b-256 checksum
How to use checksums
579046d9bbdbb480742a5871b01b1e82feaad75781933b4eaeeecd6b19262c83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page