An economic analysis of cooperative research