This article considers the question of how to cope with heterogeneity when studying causal effects. The standard approach in empirical economics is still to use a linear model and interpret the coefficients as the average returns or effects. Nowadays, instrumental variables (IV) are quite popular to account for (unobserved) heterogeneity when estimating these parameters. First the inadequacy of these standard methods is illustrated. Then it is shown why varying-coefficient models have a strong natural potential to model heterogeneity in many interesting regression problems. Moreover, it is straight forward to develop alternative IV specifications in the varying-coefficient models framework. The corresponding modeling and implementation facilities that are nowadays available in R are studied