The paper presents empirical evidence on firms’ decisions to cooperate in R&D and the extent to which government sponsored R&D programs increase cooperation. Using a sample of firms from the Spanish innovation survey, the authors jointly estimate the determinants of firm participation in R&D programs and of choice of cooperation partners.