有关fama-french的程序代码
%include'/wrds/crsp/samples/crspmerge.sas'; %crspmerge(s=m,start=01jan1959,end=30jun2011,
sfvars=&msfvars,sevars=&msevars,filters=exchcd in(1,2,3));
/* CRSP_M is sorted by date and permno and has historical returns */ /* as well as historical share codes and exchange codes */ /* Add CRSP delisting returns */ procsql; create table crspm2 as select a.*, b.dlret,
sum(1,ret)*sum(1,dlret)-1 as retadj "Return adjusted for delisting", abs(a.prc)*a.shrout as MEq 'Market Value of Equity'
fromCrsp_m a leftjoin &crsp..msedelist(where=(missing(dlret)=0)) b ona.permno=b.permno and
intnx('month',a.date,0,'E')=intnx('month',b.DLSTDT,0,'E') order bya.date, a.permco, MEq; quit;
/* There are cases when the same firm (permco) has two or more */ /* securities (permno) at same date. For the purpose of ME for */ /* the firm, we aggregated all ME for a given permco, date. This */ /* aggregated ME will be assigned to the Permno with the largest ME */ datacrspm2a (drop= Meq); setcrspm2; bydatepermcoMeq; retainME;
iffirst.permco and last.permco thendo; ME=meq;
output; /* most common case where a firm has a unique permno*/ end; elsedo;
iffirst.permco thenME=meq; elseME=sum(meq,ME);
iflast.permco thenoutput; end; run;
/* There should be no duplicates*/
procsort data=crspm2a nodupkey; bypermnodate;run; /* The next step does 2 things: */
/* - Create weights for later calculation of VW returns. */ /* Each firm's monthly return RET t willl be weighted by */ /* ME(t-1) = ME(t-2) * (1 + RETX (t-1)) */
/* where RETX is the without-dividend return. */
/* - Create a File with December t-1 Market Equity (ME) */
datacrspm3 (keep=permno dateretadjweight_port ME exchcdshrcdcumretx) decme (keep= permno dateME rename=(me=DEC_ME) ) ; setcrspm2a; bypermno date;
retainweight_portcumretxme_base; Lpermno=lag(permno); LME=lag(me);
iffirst.permno thendo;
LME=me/(1+retx); cumretx=sum(1,retx); me_base=LME;weight_port=.;end; elsedo;
ifmonth(date)=7 thendo; weight_port= LME;
me_base=LME; /* lag ME also at the end of June */ cumretx=sum(1,retx); end; elsedo;
ifLME>0 thenweight_port=cumretx*me_base;
cable colour code 3页 2下载券 Damping of Stay Cable ... 24页 免费 Fama_French code 13页 2下载券 French Cable Operators 暂无评价 1页 3下载券 ...
country_code_state_code_list_英语考试_外语学习_教育专区。Citizenship & ...French Guiana French Polynesia Gabon Gambia, The Gaza Georgia Germany Ghana ...
Language_code_IT/计算机_专业资料。列举了各国语言名称的全称和网络通用代码。...French - France Gaelic - Ireland Galician - Spain Georgian - Georgia German...
FAMA and KENNETH R. FRENCH (1992) JOURNAL OF FINANCE 47(2), 427-465 摘要: 结合?个简单的变?:规模、帐面对市价比,衡?市场 β、规模、财务杠 杆、...
语码转换(code-switching)_英语学习_外语学习_教育专区。Sociolinguistics--Code...? ? Some cultures are more hybrid than others Chinese, French, Greek are...
利用美国证券市场的有关数据,讨论了应用CAPM和Fama-French模型分析股票收益率时的一些问题,并对两个模型进行了比较分析.利用美国证券市场的有关数据,讨论了应用CAPM...
Fama French_经管营销_专业资料。Fama FrenchAgenda Advancing economics in business Fama–French: a challenge to the CAPM? The CAPM has become the '...
857 Turkish 860 Portuguese 861 Icelandic 863 Canadian-French 865 Nordic 866 Russian 869 Modern Greek 什么是code page, 怎么修改windows cmd中的codepage ...
i~ 月的月度数据计算出了 Fama- French 因子模型的三个因 子时间序列, 对它们进行描述性统计得表 1。由表 1 看出: ( 1) 市场组合的平均超额回报率为正( ...
Airport Code_交通运输_工程科技_专业资料。全球国际机场代码一区(TC1):包括...FRENCH GUIANA BRAZIL BRAZIL BRAZIL BRAZIL BRAZIL BRAZIL ECUADOR ECUADOR PERU ...
热门文档