| Algorithm 1: IV-GIN |
| Input: Treatment X, outcome Y, and set of observed variables
. Output: Set of candidate and its corresponding conditional set . 1: Initialize the set of candidate IVs: , the conditional set: , the length of conditional set: , and ; 2: while do 3: for each variable do 4: repeat 5: Select a subset from such that ; 6: if follows the IV-GIN condition then 7: Add into , and delete from ; 8: Set ; 9: Break the repeat loop of line 4; 10: end if 11: until all subsets with length in are selected; 12: end for 13: ; 14: end while 15: Return: and |