1 Star 0 Fork 161

morcc / mostly-harmless-replication

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Figure 3-1-3.do 788 Bytes
一键复制 编辑 原始数据 按行查看 历史
vikjam 提交于 2015-12-13 14:41 . Misc. changes
clear all
set more off
eststo clear
capture log close _all
capture version 13
/* Stata code for Table 3.3.2*/
/* !! Can't find right data !! */
/* Download data */
* shell curl -o asciiqob.zip http://economics.mit.edu/files/397
* unzipfile asciiqob.zip, replace
/* Import data */
infile lwklywge educ yob qob pob using asciiqob.txt, clear
/* Panel A */
/* Old-fashioned standard errors */
regress lwklywge educ
/* Robust standard errors */
regress lwklywge educ, robust
/* Collapse data for Panel B (counting only if in sample) */
gen count = 1 if e(sample)
collapse (sum) count (mean) lwklywge, by(educ)
/* Old-fashioned standard errors */
regress lwklywge educ [aweight = count]
/* Robust standard errors */
regress lwklywge educ [aweight = count], robust
/* End of file */
exit
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/morcc7/mostly-harmless-replication.git
git@gitee.com:morcc7/mostly-harmless-replication.git
morcc7
mostly-harmless-replication
mostly-harmless-replication
master

搜索帮助

Bbcd6f05 5694891 0cc6727d 5694891