有关fama-french的程序代码
elseweight_port=.;
cumretx=cumretx*sum(1,retx); end; end;
outputcrspm3;
ifmonth(date)=12 and ME>0 thenoutputdecme; run;
/* Create a file with data for each June with ME from previous December */ procsql;
create table crspjune as select a.*, b.DEC_ME
from crspm3 (where=(month(date)=6)) as a, decme as b where a.permno=b.permno and
intck('month',b.date,a.date)=6; quit;
/*************** Part 3: Merging CRSP and Compustat ***********/ /* Add Permno to Compustat sample */ procsql;
create table ccm1 as
select a.*, b.lpermno as permno, b.linkprim from comp as a, &crsp..ccmxpf_linktable as b where a.gvkey=b.gvkey
and substr(b.linktype,1,1)='L'and linkprim in('P','C')
and (intnx('month',intnx('year',a.datadate,0,'E'),6,'E') >= b.linkdt) and (b.linkenddt>= intnx('month',intnx('year',a.datadate,0,'E'),6,'E') or missing(b.linkenddt))
order bya.datadate, permno, b.linkprimdesc; quit;
/* Cleaning Compustat Data for no relevant duplicates */
/* Eliminating overlapping matching : few cases where different gvkeys */ /* for same permno-date --- some of them are not 'primary' matches in CCM */ /* Use linkprim='P' for selecting just one gvkey-permno-date combination */ dataccm1a; setccm1;
bydatadatepermno descending linkprim; iffirst.permno; run;
/* Sanity Check -- No Duplicates */
procsort data=ccm1a nodupkey; bypermno yeardatadate; run;
/* 2. However, there other type of duplicates within the year */
/* Some companiess change fiscal year end in the middle of the calendar year */
/* In these cases, there are more than one annual record for accounting data */
/* We will be selecting the last annual record in a given calendar year */ dataccm2a ; setccm1a; bypermno yeardatadate; iflast.year; run;
/* Sanity Check -- No Duplicates */
procsort data=ccm2a nodupkey; bypermnodatadate; run; /* Finalize Compustat Sample */
/* Merge CRSP with Compustat data, at June of every year */ /* Match fiscal year ending calendar year t-1 with June t */ procsql; create table ccm2_june as
select a.*, b.BE, (1000*b.BE)/a.DEC_ME as BEME, b.count, b.datadate,
intck('month',b.datadate, a.date) as dist from crspjune a, ccm2a b
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 ...
热门文档