Giter VIP home page Giter VIP logo

mvpc's Introduction

MVPC

In this repository, we provide the implementation of Missing Value PC (MVPC) for both linear Gaussian and binary cases. MVPC is a framework of causal discovery in the presence of different missingness mechanisms, including missing completely at random (MCAR), missing at random (MAR), and missing not at random (MNAR). MVPC is based on the PC algorithm and contains two methods for correcting wrong results produced by missing value issues, Permutation-based Correction (PermC) and Density Ratio Weighted (DRW) correction method. More details can be found in the paper [1] and the long paper version. The implementation is based on the R package pcalg.

Installation

Step 1: Install R.

Step 2: Intall attached packages.
mipfp_3.2.1, numDeriv_2016.8-1, Rsolnp_1.16, cmm_0.12, DescTools_0.99.28, e1071_1.7-2, ks_1.11.6, weights_1.0, mice_3.4.0, gdata_2.18.0, Hmisc_4.2-0, ggplot2_3.1.1, Formula_1.2-3, survival_2.44-1.1, lattice_0.20-38, mvtnorm_1.0-11, pcalg_2.6-2, graph_1.60.0, BiocGenerics_0.28.0

Structure of Repository

The directory structure is:

  • src: The source code for MVPC.

    • MissingValuePC.R: Implementation of the MVPC framework.
    • CITest.R: Implementation of conditional independence tests.
    • SyntheticDataGeneration.R: Generation of sythetic data.
    • Evaluation.R: Evaluation metrics, such as Structural Hamming distance, recall and precision of the causal skeleton results.
  • exps: The experiments on the binary and continuous variable datasets.

    • bins: Binary variable experiments with different sample sizes in MAR/MNAR datasets.
    • conti: Linear Gaussain experiments.
      • Mul_cause.R: Experiments for the case with multiple parents of missingness indicators.
      • NoS_mar.R: Experiments with different sample sizes in MAR datasets.
      • NoS_mnar.R: Experiments with different sample sizes in MNAR datasets.
      • NoV: Experiments with different number of variables in MAR datasets.
    • results: Some results in the experiments.
  • data: Used datasets for binary experiments.

  • demo.R: An example of applying MVPC to the linear Gaussian case with missing values.

Reference

[1] Causal Discovery in the Presence of Missing Data, AISTATS 2019, Ruibo Tu*, Cheng Zhang*, Paul Ackermann, Karthika Mohan, Clark Glymour, Hedvig Kjellström, Kun Zhang*

mvpc's People

Contributors

turuibo avatar

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.