Hello, I am working on a dataset (see below). The dataset list the components of a product and other relevant information. Dataset FirmID ProductID BeginYear MarketYear Components 10001 AB259T 1996 1998 B30 | A 10001 AB259T 1996 1998 V55 | U 10001 AA386G 1999 2001 T92 | B 10001 AA386G 1999 2001 R26 | L 10001 AA386G 1999 2001 V55 | U 10002 CT746B 2007 2009 U38 | P 10002 CT746B 2007 2009 X48 | O 10002 CT746B 2007 2009 K93 | E 10002 RU239F 2008 2010 O28 | L 10002 RU239F 2008 2010 A47 | W 10003 TY569I 2008 2010 Q15 | P 10003 GC992M 2009 2011 W91 | O 10003 GC992M 2009 2011 Q15 | P All the components of each firm consist of a component base. This component base is updated annually as firms introduce more products. For example, the component base for Firm 10001 in 1996 only includes two components ( B30 | A and V55 | U) and it has four components in 1999 ( B30 | A, V55 | U, T92 | B and R26 | L). I would like to know how many incremental products and radical products each firm has for each year. If all the components of a new product do not overlap with the existing component base, it will be considered as radical products. For example, RU239F is a radical product for firm 10002 because none of its components overlaps with its existing component base. If one of the components of a new product overlaps with the existing component base, it will be considered as incremental products. For example, AA386G is an incremental product for firm 10001 because one of its components (V55 | U) already exists in its component base. So as GC992M for firm 10003. Can anyone tell me what code do I need to use? Thanks.
... View more