摘要: 参考:stata批量读入excel文件,并合并为一个dta文件 cd "E:\账面市值比(2000-2020)" local files: dir . files "*.xls" foreach file of local files { import excel using `"`file'"', 阅读全文
posted @ 2021-10-09 17:17 将军练码 阅读(1491) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-10-09 11:11 将军练码 阅读(0) 评论(0) 推荐(0)
摘要: 参考:Stata: 正则表达式和文本分析 //判断字段”X“中是否含有数字以外的文字或符号,如果有,查找是什么文字/符号。 tab X if regexm( X , "[^0-9 .]") 方法二:d varlist 元字符 含义 举例 \ 后向引用,后面跟正则表达式中的某个元字符,表示匹配该符号。 阅读全文
posted @ 2021-10-09 08:50 将军练码 阅读(599) 评论(0) 推荐(0)
摘要: merge+update 阅读全文
posted @ 2021-10-08 18:34 将军练码 阅读(35) 评论(0) 推荐(0)
摘要: //对v1、v2排序并分组,生成num1等于某组的观测值总数 bysort v1 v2: gen num1 = _N //v2只排序不分组,生成num2等于某组的观测值总数。 bysort v1 (v2): gen num2 = _N 只排序不分组的变量,bys中要加() 阅读全文
posted @ 2021-10-08 16:39 将军练码 阅读(80) 评论(0) 推荐(0)
摘要: 错误代码1: list if city =="" replace city ="涪陵市" if stkcd ==688 & year==1997|1998 知道错误原因吗? replace city_office="涪陵市" if stkcd ==688 & year==1997|year==199 阅读全文
posted @ 2021-10-08 16:08 将军练码 阅读(498) 评论(0) 推荐(0)
摘要: For decades retail investors were overlooked and underserved. The rich might have **dabble**d in trading stocks directly, but most workers earned defi 阅读全文
posted @ 2021-10-03 22:49 将军练码 阅读(80) 评论(0) 推荐(0)
摘要: The** anti-establishment **approach is all too fitting. No other company’s fortunes have been as tied to the craze for meme stocks, **fuel**led by onl 阅读全文
posted @ 2021-10-03 22:36 将军练码 阅读(201) 评论(0) 推荐(0)
摘要: 福尔摩斯: “I consider that a man's brain originally is like a little empty attic, and you have to stock it with such furniture as you choose. A fool takes 阅读全文
posted @ 2021-09-30 12:29 将军练码 阅读(34) 评论(0) 推荐(0)
摘要: Stata常用字符函数大全 阅读全文
posted @ 2021-09-28 16:51 将军练码 阅读(67) 评论(0) 推荐(0)