世界银行世界银行Beeps案例

上传人:w****i 文档编号:91782113 上传时间:2019-07-01 格式:PPTX 页数:35 大小:284.15KB
返回 下载 相关 举报
世界银行世界银行Beeps案例_第1页
第1页 / 共35页
世界银行世界银行Beeps案例_第2页
第2页 / 共35页
世界银行世界银行Beeps案例_第3页
第3页 / 共35页
世界银行世界银行Beeps案例_第4页
第4页 / 共35页
世界银行世界银行Beeps案例_第5页
第5页 / 共35页
点击查看更多>>
资源描述

《世界银行世界银行Beeps案例》由会员分享,可在线阅读,更多相关《世界银行世界银行Beeps案例(35页珍藏版)》请在金锄头文库上搜索。

1、世界银行Beeps案例,Dr. Chuntao Lee,Beeps 数据,clear set more off global path = “d:春涛教程世界银行“ use $path世界银行Beeps数据.dta, clear,country,country,国家代码,substr(),drop year gen year = real(substr(country,-4,4) replace country = substr(country, 1, length(country)-4),split str_variable, parse(parse_strings),drop year s

2、plit country,p(200) drop country rename country1 country gen int year=2000+real(country2) drop country2,subinstr(s1,s2,s3,n),gen str4 s_year = string(year) replace country=subinstr(country,s_year,“,1) 或者简洁为: replace country=subinstr(country,string(year),“,1),country,drop year gen year = real(substr(

3、country,-4,4) replace country = substr(country, 1, length(country)-4) replace country = “Turkey“ if country=“Turkey-b“ replace country = “Vietnam“ if country=“Vietnam-b“ rename c_abbr c_code,industry,decode industry, gen(temp) drop industry rename temp industry gen str20 ind = industry replace ind =

4、 “Leather & Garments“ if industry=“Leather“ |industry=“Garments“ replace ind = “Food & Beverages“ if industry=“Food“ |industry=“Beverages“ replace ind = “Auto & Transport Equip“ if industry=“Auto and auto components“ | industry=“Other transport equipment“ replace ind = “IT services“ if industry=“Tel

5、ecommunications“ replace ind = “Non-metallic & plastic“ if industry=“Non-metallic and plastic materials“ bysort ind: keep if _N=100 tab ind, gen(ind),R&D,rename c280 RD rename c274a1y sales gen RD_sales =RD/sales replace RD_sales =0 if RD=. replace RD_sales = 1 if RD_sales1 & RD_sales=.,Firm Size &

6、Age,gen large = (size_new=3) gen median = (size_new=2) gen firm_age = year-c201 recode firm_age -1=. replace firm_age = ln(1+firm_age),Firm Age,histogram firm_age if firm_age100, bin(30) norm,replace firm_age = ln(1+firm_age) histogram firm_age, bin(30) norm,gen large_city = (c2071=2),Market power,c

7、216a1 : Number of competitors (domestic private firms) gen mkt_power = (c216a1=4),Manager Education,rename c271 manager_edu tab manager_edu replace manager_edu =(manager_edu=4 & manager_edu=.),Corporate Governance,gen gov_owner=(c205b9=1) gen corporation = (c2024) recode gov_efficient 1=0 if c234=.,

8、Other controls,gen large_city = (c2071=2) gen internet=(c224a=1 | c224b=1),合并IPR,sort c_code merge c_code using $path/macro_control/IPR_2010, nokeep drop _m,IPR,clear insheet using d:/春涛教程/世界银行/macro_controlipr_2010.txt, clear drop c_code rename region country replace country =“South Korea“ if count

9、ry=“Korea (South)“ replace country =“Kyrgyzstan“ if country=“Kyrgyz Republic“ sort country merge country using d:/春涛教程/世界银行/macro_controlcountry_code keep if _m=3 drop _m drop if c_code=“ rename internationalpropertyrightsindex InterPR rename legalandpoliticalenvironment legal_envi rename physicalpr

10、opertyrights PPR_2010 rename intellectualpropertyrights IPR_2010 drop country sort c_code save d:/春涛教程/世界银行/macro_controlipr_2010, replace,PPI,sort c_code merge c_code using $path/macro_control/park_PPI, nokeep drop _m,工具变量,sort c_code merge c_code using $path/macro_control/indy, nokeep drop _m sort

11、 c_code merge c_code using $path/macro_control/latitude, nokeep drop _m sort c_code merge c_code using $path/macro_control/religion, nokeep drop _m sort c_code merge c_code using $path/macro_control/fractionalization, nokeep drop _m,sample,preserve sort country by country: keep if _N800 tabstat RD_s

12、ales, s(N mean sd) by(country) c(s) save tabstatmat RD_sales mat l RD_sales, format(%10.4f) tabstat IPR_2010 PPI_2005 InterPR, s(mean) by(country) c(s) save tabstatmat legal mat l legal, format(%10.4f) mat RD_legal = RD_sales, legal mat l RD_legal, format(%10.4f) restore,sample,Summary Statistics,ta

13、bstat gov_owner large_city audit gov_efficient corporation internet large median manager_edu mkt_power firm_age ln_gni, s(mean sd min median max) c(s) long save tabstatmat firm_data mat firm_data = firm_data mat l firm_data, format(%7.3f),Summary Statistics,T-test,ttable2 gov_owner large_city audit

14、gov_efficient corporation / internet large median manager_edu mkt_power firm_age ln_gni,by(RD_D),T-test,pwcorr,pwcorr RD_sales IPR_2010 gov_owner large_city audit gov_efficient corporation internet large median manager_edu firm_age mkt_power ln_gni, star(5) 演示如何将相关系数表放到Word里面,regression,logit RD_sal

15、es IPR_2010 gov_owner large_city audit gov_efficient corporation mkt_power internet large median manager_edu firm_age ln_gni ind2-ind22 est store m1 logit RD_sales PPI_2005 gov_owner large_city audit gov_efficient corporation mkt_power internet large median manager_edu firm_age ln_gni ind2-ind22 est

16、 store m2 logit RD_sales InterPR gov_owner large_city audit gov_efficient corporation mkt_power internet large median manager_edu firm_age ln_gni ind2-ind22 est store m3,regressions,tobit RD_sales IPR_2010 gov_owner large_city audit gov_efficient corporation mkt_power internet large median manager_edu firm_age ln_gni ind2-ind22, ll(0) ul(1) est store m4 tobit RD_sales PPI_2005 gov_owner large_city audit gov_efficient corporation mkt_power inte

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 高等教育 > 大学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号