Giter VIP home page Giter VIP logo

npci's Introduction

WARNING

This package is experimental and not supported. To fit a non-parametric model for causal inference, use bartCause instead.

Prequisites

Rtools for windows. gfortran 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.

npci's People

Contributors

vdorie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

npci's Issues

Hope to Get Some Clarification about the Setting A

Hi Vdorie,

I saw your confusion that everyone is using your implementation for IHDP dataset simulation. Haha, I thought it is because of this highly cited NeurIPS 2016 paper, the auther claimed that they used your npci repo. I know your repo also due to this paper.

Get back to my confusion, I found out that you responded to the simulation setting things "is the setting A, B and C same to Jennifer Hill's setting A, B and C" with Yes answer. But what I found from your R code (from data.R file under ihdp_sim folder) is like:

Screen Shot 2022-05-17 at 6 46 20 pm

From my understanding, if we set setting=="A", for the highlighted area, your algorithm will go to the else part isn't it? But, the response surface A in Jennifer's paper is stated to be linear, and I also refer to her code as follows:

Screen Shot 2022-05-17 at 6 47 01 pm

The response surface B, which is non-linear, is similar to your code under the else condition. And if we set setting=="B", it will go through the linear response function under the if condition, which supposed to be non-linear in Jennifer's paper.

Thus, I just wanna confirm that, do we mess up the setting A and B here? Or if I miss something?

Thanks for any reply in advance!

Regards,
Hechuan

Does the setting=A refer to the setting A used by Jennifer Hill?

Hey there,

first off, thanks for implementing this package that has found so wide usage for evaluations.
I was wondering whether the IHDP setting A in your code refers to the setting A proposed by Hill in her paper?

I find it hard to get a clear overview over all the different datasets based on IHDP used for comparison of causal effect estimators. This would make things a bit clearer.

Thanks!

Unable to install npci package

Hi, there!

First, thanks for sharing the package for us!
I would have this package to have several simulations for IHDP. But when I was trying to install this package, it gave me the error message below:

* installing *source* package ‘npci’ ...
** using staged installation
** libs
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o npci.so npci.o -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [npci.so] Error 1
ERROR: compilation failed for package ‘npci’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/npci’

I have tried many ways like searching the problem, changing R version to 3.1.1, and even switching from Windows to MacOS to solve this issue but all failed.
Would you have any suggestion for this?

Thanks a lot!

How to generate the simulation data

Hello, sorry to bother you. Could you please tell me where the file 'examples/ihdp_sim/loadData.R' is? I couldn't find it in the repository. It seems that the data generation speed is a bit slow when using 'examples/ihdp_sim/runLocally.R' to generate data.So I need 'loadData.R.' If it's convenient, could you please let me know how to obtain it? I would greatly appreciate it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.