Causal Inference in Python, or Causalinference in short, is a software package that implements various statistical and econometric methods used in the field variously known as Causal Inference, Program Evaluation, or Treatment Effect Analysis.
Work on Causalinference started in 2014 by Laurence Wong as a personal side project. It is distributed under the 3-Clause BSD license.
The official website for Causalinference is
https://causalinferenceinpython.org
The most current development version is hosted on GitHub at
https://github.com/laurencium/causalinference
Package source and binary distribution files are available from PyPi at
https://pypi.python.org/pypi/causalinference
For an overview of the main features and uses of Causalinference, please refer to
https://github.com/laurencium/causalinference/blob/master/docs/tex/vignette.pdf
A blog dedicated to providing a more detailed walkthrough of Causalinference and the econometric theory behind it can be found at
https://laurencewong.com/software/
Causalinference can be installed using pip
:
$ pip install causalinference
For help on setting up Pip, NumPy, and SciPy on Macs, check out this excellent guide.
The following illustrates how to create an instance of CausalModel:
>>> from causalinference import CausalModel >>> from causalinference.utils import random_data >>> Y, D, X = random_data() >>> causal = CausalModel(Y, D, X)
Invoking help
on causal
at this point should return a comprehensive listing of all the causal analysis tools available in Causalinference.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。