I need to produce statistics on :
** The number of patents, green patents, proportion green, per year (total at the end).
NUMBER OF PATENTS I managed this.
bysort filing_year: asdoc tabstat patent_num, stat(N min max p10 p25 p50 p75 p99)
NUMBER of GREEN PATENTS
I have created a dummy variable (0-9) called "scheme_code" which classify the patents into not green (=0) and green(1-9).
How can I tell STATA to produce statistics for green patents (scheme_code between 1 and 9) per year?
PROPORTION GREEN PER YEAR
How can I produce a proportion of green patents per year statistics?
Thanks
** The number of patents, green patents, proportion green, per year (total at the end).
NUMBER OF PATENTS I managed this.
bysort filing_year: asdoc tabstat patent_num, stat(N min max p10 p25 p50 p75 p99)
NUMBER of GREEN PATENTS
I have created a dummy variable (0-9) called "scheme_code" which classify the patents into not green (=0) and green(1-9).
How can I tell STATA to produce statistics for green patents (scheme_code between 1 and 9) per year?
PROPORTION GREEN PER YEAR
How can I produce a proportion of green patents per year statistics?
Thanks
Comment