The file 'currentFCI.R' includes our adaptations to the FCI algorithm (based on the package pcalg).
To run the code, execute the files in the indicated order:
Preprocessing: 1_importHydrosheds.R 2_linkingHydrosheds.R 3_upstreamHydrosheds.R
Calculation of correlations in dependence of distance: 4_dist_cor.R
Inference of graphical models: 5_modelling.R
Evaluation of the models: 6_evaluate.R
Export of results: 7_export_results.R
Export of quartiles of conditional independence tests: 8_quartiles.R
Calculation of conflict rates> 9_conflict_rates.R