文章预览
前情回顾 数据来源 清洗数据 cd C : \ Download
u fs_comins_2023_annual_consolidate_2023 , clear
keep Stkcd year B001209000 B001210000
merge 1 : 1 S y using PT_LCRDSPENDING_2023_year , nogen keepus ( RDSpendSum )
merge 1 : 1 S y using fs_combas_2023_annual_consolidate_2023 , nogen keepus ( A001000000 )
egen r = rowtotal ( R )
drop R
egen i = rowtotal ( B001209000 B001210000 )
g R = r / A
g I = i / A
xtset S y
g s = R / I - L . R / L . I
forv i = 0 / 2 {
g L ` i 's = L`i' . s
}
egen m = rowmean ( L * s )
winsor m , p ( . 01 ) g ( Metamo )
keep S y M
drop if mi ( M ) | M == 0
la var M 企业蜕变
sa 企业蜕变 , replace
d
ta y
kdensity M 得到结果 Contains data from 企业蜕变.dta
Observations: 39,024
Variables: 3 24 Jun 2024 12:
………………………………