Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vdorie/npci
Non-parametrics for Causal Inference
https://github.com/vdorie/npci
Last synced: 3 months ago
JSON representation
Non-parametrics for Causal Inference
- Host: GitHub
- URL: https://github.com/vdorie/npci
- Owner: vdorie
- Created: 2015-07-02T17:34:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-17T02:27:44.000Z (over 2 years ago)
- Last Synced: 2024-06-03T06:38:35.020Z (5 months ago)
- Language: R
- Size: 153 KB
- Stars: 40
- Watchers: 3
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## WARNING
**This package is experimental and not supported. To fit a non-parametric model for causal inference, use [bartCause](https://github.com/vdorie/bartCause) instead.**
## Prequisites
[Rtools](https://cran.r-project.org/bin/windows/Rtools/) for windows. [gfortran](https://github.com/fxcoudert/gfortran-for-macOS/releases) for Mac OS.
## Notes
Contains R code to fit non-parmetric causal inference models. Of particular interest are the calculations in the examples folder.
To run the examples, first install the package by running, from within R
install.packages("path/to/repository", type = "source", repos = NULL)
or from the command line
R CMD INSTALL path/to/repository
The file `examples/toy/generatePlots.R` contains code to produce the toy data example. The simulation data can be simply loaded by running `examples/ihdp_sim/loadData.R`, or the simulations produced by running either `examples/ihdp_sim/runLocally.R` or `examples/ihdp_sim/queueJobs.R` (if on a cluster using TORQUE). Change your working directory before doing any of the above.