In this paper we analyze the heterogeneity in firms’ decisions to engage in R&D cooperation, taking into account the type of partner (other companies from the same group, suppliers or customers, competitors, and research institutions) and the sector to which the firm belongs (industrial or services). We use information from the Technological Innovation Panel (PITEC) for the years 2006-2008 and estimate multivariate probit models corrected for endogeneity. We find that the determinants of R&D cooperation differ between sectors. In the industrial sector, the perception of risk as an obstacle to innovation reduces the likelihood of cooperating with companies in the same group and competitors, while in the service sector it reduces cooperation with suppliers or customers. For its part, the possibility of accessing additional human resources has a significantly positive effect on cooperation with all types of partner in the service sector, but not for manufactures.