Patent rights and innovative activity: evidence from national and firm-level data · Study