Beginner desperate for feedback :) Difference in differences

is not provided, which prevents the code from operating as a reprex (see the FAQ). I can't tell what "annual patents registered for each group" refers to. Does that mean for any given year that there are as many rows as patents issued? Or are there just the 29 years with the number of patents issued, once for SME and once for large, making 58 rows?