有关fama-french的程序代码
where a.permno=b.permno and intnx('month',a.date,0,'E')= intnx('month',intnx('year',b.datadate,0,'E'),6,'E') order bya.date; quit;
/************************ Part 4: Size and Book to Market Portfolios ***/ /* Forming Portolio by ME and BEME as of each June t */
/* Calculate NYSE Breakpoints for Market Equity (ME) and */ /* Book-to-Market (BEME) */
procunivariate data=ccm2_june noprint;
where exchcd=1 and beme>0 and shrcd in(10,11) and me>0 and count>=2; var ME BEME;
bydate; /*at june;*/
outputout=nyse_breaks median= SIZEMEDN pctlpre=ME BEME pctlpts=30 70; run;
/* Use Breakpoints to classify stock only at end of all June's */ procsql;
create table ccm3_june as
select a.*, b.sizemedn, b.beme30, b.beme70 from ccm2_june as a, nyse_breaks as b where a.date=b.date; quit;
/* Create portfolios as of June */
/* SIZE Portfolios : S[mall] or B[ig] */
/* Book-to-market Portfolios: L[ow], M[edium], H[igh] */ datajune ; setccm3_june;
Ifbeme>0 and me>0 and count>=2 thendo; positivebeme=1;
* beme>0 includes the restrictioncs that ME at Dec(t-1)>0 * and BE (t-1) >0 and more than two years inCompustat; if0 <= ME <= sizemedn thensizeport = 'S'; elseifME >sizemedn thensizeport = 'B'; elsesizeport='';
if0 <beme<= beme30 thenbtmport = 'L';
elseifbeme30 <beme<= beme70 thenbtmport = 'M'; elseifbeme> beme70 thenbtmport = 'H'; elsebtmport=''; end;
elsepositivebeme=0;
ifcmiss(sizeport,btmport)=0 thennonmissport=1; elsenonmissport=0; keeppermno datesizeportbtmportpositivebemeexchcdshrcdnonmissport; run;
/* Identifying each month the securities of */
/* Buy and hold June portfolios from July t to June t+1 */ procsql; create table ccm4 as
select a.*, b.sizeport, b.btmport, b.dateas portdate format date9., b.positivebeme , b.nonmissport from crspm3 as a, june as b
where a.permno=b.permno and 1 <= intck('month',b.date,a.date) <= 12 order bydate, sizeport, btmport; quit;
/*************** Part 5: Calculating Fama-French Factors **************/ /* Calculate monthly time series of weighted average portfolio returns */ procmeans data=ccm4 noprint;
where weight_port>0 and positivebeme=1 and exchcd in(1,2,3) and shrcd in(10,11) and nonmissport=1; bydatesizeportbtmport; varretadj;
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 ...
热门文档