An, W. and Wang, X. (2016) “LARF: Instrumental Variable Estimation of Causal Effects through Local Average Response Functions”, Journal of Statistical Software, Code Snippets, 71(1), pp. 1–13. doi: 10.18637/jss.v071.c01.