# Supplementary Code

This code can be used to reproduce the results in the paper 'Identifiability of Sparse Causal Effects using Instrumental Variables' by Niklas Pfister and Jonas Peters.

## Included files

* check_assumptions.R: Contains a function to check assumptions A1 and A3 based on a known graph.

* estimator.R: Estimators used for the simulations, including the proposed spaceIV estimator.

* k_class.R: Implementation of k-class estimators used for the LIML estimator.

* simulate_data.R: Function to generate data according to the simulation setup described in the paper.

* simultion_experiments.R: Script that runs all simulation experiments decribed in the paper.

* plot_results.R: Script that plots the results. Needs to be run after simulation_experiments.R.