This paper studies the welfare effects of Ramp;D subsidies. We develop a model of continuous optimal treatment with outcome heterogeneity where the treatment outcome depends on applicant investment. The model takes into account heterogeneous application costs and identifies the treatment effect...