Professional Documents
Culture Documents
. edit
. *(6 variables, 3732 observations pasted into data
editor)
. save
"C:\Users\Administrator\Desktop\Econometrics\pa
tent.dta"
file
C:\Users\Administrator\Desktop\Econometrics\pat
ent.dta saved
. clear
. *(6 variables, 90 observations pasted into data
editor)
. save
"C:\Users\Administrator\Desktop\Econometrics\in
dustry.dta"
2.3 Listingfile
the industry coding by collapse command
C:\Users\Administrator\Desktop\Econometrics\ind
ustry.dta saved
since the observation variable (obs)s patent file does not close to the real
cd "C:\Users\User\Desktop\mastermind"
use patent.dta, clear
replace industry="paper and publishing" if
industry=="paper"
replace industry="paper and publishing" if
industry=="publish"
replace industry="textiles" if
industry=="apparel"
replace industry="food" if industry=="food "
replace industry="intermediate" if
industry=="intermediate "
replace industry="machinery" if
industry=="food mach"
replace industry="machinery" if
industry=="publish mach"
replace industry="machinery" if
industry=="intermediate mach"
replace industry="machinery" if
industry=="office mach"
replace industry="machinery" if
industry=="paper mach"
replace industry="machinery" if
industry=="agri mach"
replace industry="machinery" if
industry=="furniture mach"
Making two files be consistent
cd
"C:\Users\User\Desktop\master
mind"
use tmp0.dta, clear
rename grantyear year
gen patcount=1
collapse (sum) patcount,
by(industry year)
save patent_count.dta, replace
br
File year should be used in making pattern court with the reason is
grant year data is 1 year slower than the file year data which spends
overtime time to research and lunch the journal. Furthermore, file year is
the year after complete innovation. If we choose grant year, it might be
able to create the lag data or even cause the difficulty of future
inspection.
2.6 Merging the patent count and industrial datasets into one data set
cd "C:\Users\User\Desktop\mastermind"
use industry.dta, clear
sort year industry
save tmp1.dta, replace
br
use patent_count.dta, clear
sort year industry
save tmp2.dta, replace
br
use tmp1.dta, clear
merge year industry using tmp2.dta
rename _merge mrg1
save combine.dta, replace
br
cd "C:\Users\User\Desktop\mastermind"
use combine.dta, clear
2.7 Creating new variables that contain R&D spending, export values and
production values in real term.
gen rrd=rdspend*100/cpi
gen rexpval=expval*100/cpi
gen
rprodval=prodval*100/cpi
save combine.dta, replace
Part III: Summary Statistics
3.1
patenting and R&D activity overtime after the reforms. Otherwise, the
on the rise of the rise of R&D. However, this indicates the good sign of
activity are.
3.2
Export-intensive industry means Industries with greater access to
earnings.
value in compare with export ratio is equivalent to one which is the value
of export ratios in every sector are greater than 0.5, they will indicated
intensive product.
in this case there are two industries that are qualified which are