Costs and benefits of research