stata批量导入数据

July 20th, 2013 Stata No comments | 104 views

clear all
set more off

cd “your file path”

loc comtrade: dir . file “*.csv”
foreach s of loc comtrade{
clear
insheet using `s’,n
gen fileid=”`s’” /*记录合并的文件名称,也相当于文件编码,防止各个文件混了*/
save `s’.dta,replace
}

foreach v of loc comtrade{
append using `v’.dta,force
}
duplicates drop _all,force
save final.dta,replace

SAS获取Yahoo Finance数据

July 20th, 2013 SAS No comments | 60 views

%macro getdata(tic);
FILENAME myurl URL “http://ichart.finance.yahoo.com/table.csv?s=&tic”;
DATA &tic;
INFILE myurl FIRSTOBS=2 missover dsd;
format date yymmdd10.;
INPUT Date: yymmdd10. Open High Low Close Volume Adj_Close ;
*if date>=today()-180;

RUN;
%mend;
%getdata(QIHU);

分享自己用的Latex简历模板(中英文)

March 17th, 2012 Latex 4 comments | 9,172 views

同一个主题,中英文各一份,其实也就是我现在用的简历的源码文件,所以大家可以先到我的主页看看我的简历就知道效果了。自我感觉良好,很清爽,中英文字体大家都可以随意换,要想查看本机安装的中文字体请在终端(Mac OS和Linux)或者命令行(Windows)下输入“fc-list :lang=zh-cn”查看。

请点击右边的文件名下载: resume_templates

三年

February 29th, 2012 Life No comments | 106 views

SL升级10.6.8后PCI configuration begin问题解决方法

June 25th, 2011 Mac OS 4 comments | 5,211 views

Linode终于原生支持IPv6啦

May 23rd, 2011 Web No comments | 802 views

2011 Summer International Econometrics Symposium

May 22nd, 2011 Economics No comments | 156 views

【神文】计量论文写作和发表的黑客教程:计量速成法——让初学者瞬间开窍,发《经济研究》不再难

May 21st, 2011 Economics No comments | 2,701 views

金融学、公司金融参考阅读书目和论文(转载)

May 21st, 2011 Economics No comments | 382 views

Weblog 20110504

May 5th, 2011 Web 1 comment | 84 views