<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CAPM and Fama-French three factor model in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529908#M144865</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on estimating capm and FF-3-factor model alphas and betas. I downloaded data over 40-year period, and divided all data into ten deciles. I need to estimate the two models in every deciles. My codes are as follow, but the coefficients are all zeros in two models and intercept are the same. I dont know how to fix that problems, could anybody help me out?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=aa03; by myrank date ; run;

proc reg noprint data=aa03 outest=ff;
      by myrank date;
      model exret= mkt_rf smb hml/sse;
quit; 

proc means data=ff n mean t probt;
 where 1972&amp;lt;=year(date)&amp;lt;=2017;
     class myrank;
	 var intercept;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=aa03; by myrank date ; run;
data aa03; set aa03;
     where 1972&amp;lt;=year(date)&amp;lt;=2017;
run;
proc reg noprint data=aa03 outest=capm;
      model exret= mkt_rf / sse ;
	  by myrank date;
quit; &lt;BR /&gt;proc means data=capm n mean t probt;&lt;BR /&gt;where 1972&amp;lt;=year(date)&amp;lt;=2017;&lt;BR /&gt;class myrank;&lt;BR /&gt;var intercept;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Jan 2019 22:51:29 GMT</pubDate>
    <dc:creator>Songchan</dc:creator>
    <dc:date>2019-01-24T22:51:29Z</dc:date>
    <item>
      <title>CAPM and Fama-French three factor model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529908#M144865</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on estimating capm and FF-3-factor model alphas and betas. I downloaded data over 40-year period, and divided all data into ten deciles. I need to estimate the two models in every deciles. My codes are as follow, but the coefficients are all zeros in two models and intercept are the same. I dont know how to fix that problems, could anybody help me out?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=aa03; by myrank date ; run;

proc reg noprint data=aa03 outest=ff;
      by myrank date;
      model exret= mkt_rf smb hml/sse;
quit; 

proc means data=ff n mean t probt;
 where 1972&amp;lt;=year(date)&amp;lt;=2017;
     class myrank;
	 var intercept;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=aa03; by myrank date ; run;
data aa03; set aa03;
     where 1972&amp;lt;=year(date)&amp;lt;=2017;
run;
proc reg noprint data=aa03 outest=capm;
      model exret= mkt_rf / sse ;
	  by myrank date;
quit; &lt;BR /&gt;proc means data=capm n mean t probt;&lt;BR /&gt;where 1972&amp;lt;=year(date)&amp;lt;=2017;&lt;BR /&gt;class myrank;&lt;BR /&gt;var intercept;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 22:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529908#M144865</guid>
      <dc:creator>Songchan</dc:creator>
      <dc:date>2019-01-24T22:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: CAPM and Fama-French three factor model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529912#M144866</link>
      <description>Do you really want your regression by rank and date? I feel like it should just be rank.</description>
      <pubDate>Thu, 24 Jan 2019 23:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529912#M144866</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-24T23:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: CAPM and Fama-French three factor model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529915#M144869</link>
      <description>&lt;P&gt;Yes, it works when there is only by rank, but because i'm doing momentum portfolios, I need (alpha in rank 10 - alpha in rank 1 )to calculate WML, if I only have one value for each rank, how could I get t-value for WML&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 23:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529915#M144869</guid>
      <dc:creator>Songchan</dc:creator>
      <dc:date>2019-01-24T23:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: CAPM and Fama-French three factor model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529917#M144870</link>
      <description>How many records do you have per rank/date combination?</description>
      <pubDate>Thu, 24 Jan 2019 23:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529917#M144870</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-24T23:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: CAPM and Fama-French three factor model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529919#M144871</link>
      <description>&lt;P&gt;I only have one for per rank/date combination. but my next stop is proc means class rank, to make sure i get one result for every rank&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 23:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529919#M144871</guid>
      <dc:creator>Songchan</dc:creator>
      <dc:date>2019-01-24T23:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: CAPM and Fama-French three factor model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529920#M144872</link>
      <description>How can you run a regression on a single row of data?</description>
      <pubDate>Thu, 24 Jan 2019 23:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529920#M144872</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-24T23:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: CAPM and Fama-French three factor model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529921#M144873</link>
      <description>&lt;P&gt;sorry, I meant my result had one for per combination.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Around 190 observations.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 23:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529921#M144873</guid>
      <dc:creator>Songchan</dc:creator>
      <dc:date>2019-01-24T23:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: CAPM and Fama-French three factor model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529977#M144894</link>
      <description>&lt;P&gt;Your model&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;     &lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;ex&lt;/SPAN&gt;ret&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; mkt_rf &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; sse &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	  &lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; myrank &lt;SPAN class="token function"&gt;date&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;doesn't make sense to me.&amp;nbsp; The MKT_RF is market rate of return&amp;nbsp; (commonly SP500 return) excess over risk-free assets, correct? &amp;nbsp; This is a constant for each date.&amp;nbsp; Using "by myrank date" means you are regressing EXRET for a collection of companies against a constant.&amp;nbsp; You should not be surprised to get a zero coefficient for mkt_rf. And the intercept estimate should effectively be the mean of EXRET.&amp;nbsp;&amp;nbsp; if you want the CAPM (capital asset pricing model) for each company you have to run this regression for each company over the entire time span of interest.&amp;nbsp; Then you will have CAPM alphas and betas for each company.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I don't recall you reporting on what variables you were using to assign companies to deciles. What are they?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 04:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/529977#M144894</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2019-01-25T04:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: CAPM and Fama-French three factor model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/530154#M144953</link>
      <description>&lt;P&gt;I divided data into ten deciles based on past 1-year stock returns&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 18:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CAPM-and-Fama-French-three-factor-model/m-p/530154#M144953</guid>
      <dc:creator>Songchan</dc:creator>
      <dc:date>2019-01-25T18:52:38Z</dc:date>
    </item>
  </channel>
</rss>

