<?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 Beta Estimation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336852#M76409</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help me to estimate beta for this sample. The actual data is over 100 million observations; therefore, please kindly use the code that fits that huge data. We estimate following equation for each stock using daily returns within a month. For example for stock 1, we run the regression based on daily returns of January 2010 and for other months too. The equation is given below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Return of each stock= C + beta1 (mkt1)+beta2 (mkt2) + beta3 (mkt3) +residual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then finally we estimate the beta based on sum of all three betas i.e.; beta = beta1+beta2+beta3&lt;/P&gt;
&lt;P&gt;The data is given below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards expandtabs truncover;
input stock date : yymmdd10. ret mkt1 mkt2 mkt3 ;
format date yymmdd10.;
cards;
1	2010-01-07	0.04135	0.01	0.012	0.008
1	2010-01-26	-0.02544	0.02	0.024	0.016
1	2010-01-29	0.03384	0.03	0.036	0.024
2	2010-01-07	0.06069	0.01	0.012	0.008
2	2010-01-26	-0.06219	0.02	0.024	0.016
2	2010-01-29	0.01989	0.03	0.036	0.024
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2017 07:09:30 GMT</pubDate>
    <dc:creator>MAC1430</dc:creator>
    <dc:date>2017-03-01T07:09:30Z</dc:date>
    <item>
      <title>Beta Estimation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336852#M76409</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help me to estimate beta for this sample. The actual data is over 100 million observations; therefore, please kindly use the code that fits that huge data. We estimate following equation for each stock using daily returns within a month. For example for stock 1, we run the regression based on daily returns of January 2010 and for other months too. The equation is given below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Return of each stock= C + beta1 (mkt1)+beta2 (mkt2) + beta3 (mkt3) +residual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then finally we estimate the beta based on sum of all three betas i.e.; beta = beta1+beta2+beta3&lt;/P&gt;
&lt;P&gt;The data is given below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards expandtabs truncover;
input stock date : yymmdd10. ret mkt1 mkt2 mkt3 ;
format date yymmdd10.;
cards;
1	2010-01-07	0.04135	0.01	0.012	0.008
1	2010-01-26	-0.02544	0.02	0.024	0.016
1	2010-01-29	0.03384	0.03	0.036	0.024
2	2010-01-07	0.06069	0.01	0.012	0.008
2	2010-01-26	-0.06219	0.02	0.024	0.016
2	2010-01-29	0.01989	0.03	0.036	0.024
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 07:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336852#M76409</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2017-03-01T07:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Beta Estimation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336861#M76411</link>
      <description>&lt;P&gt;data have;&lt;BR /&gt;infile cards expandtabs truncover;&lt;BR /&gt;input stock date : yymmdd10. ret mkt1 mkt2 mkt3 ;&lt;BR /&gt;format date yymmdd10.;&lt;BR /&gt;cards;&lt;BR /&gt;1 2010-01-07 0.04135 0.01 0.012 0.008&lt;BR /&gt;1 2010-01-26 -0.02544 0.02 0.024 0.016&lt;BR /&gt;1 2010-01-29 0.03384 0.03 0.036 0.024&lt;BR /&gt;2 2010-01-07 0.06069 0.01 0.012 0.008&lt;BR /&gt;2 2010-01-26 -0.06219 0.02 0.024 0.016&lt;BR /&gt;2 2010-01-29 0.01989 0.03 0.036 0.024&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc reg data = have;&lt;BR /&gt;model ret = mkt1 mkt2 mkt3;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 07:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336861#M76411</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-03-01T07:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Beta Estimation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336863#M76413</link>
      <description>I am looking for three beta (beta1, beta2, beta3) values for each stock each month. Anyway Thanks for your time and efforts.</description>
      <pubDate>Wed, 01 Mar 2017 07:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336863#M76413</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2017-03-01T07:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Beta Estimation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336916#M76435</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards expandtabs truncover;
input stock date : yymmdd10. ret mkt1 mkt2 mkt3 ;
format date yymmdd10.;
cards;
1 2010-01-07 0.04135 0.01 0.012 0.008
1 2010-01-26 -0.02544 0.02 0.024 0.016
1 2010-01-29 0.03384 0.03 0.036 0.024
2 2010-01-07 0.06069 0.01 0.012 0.008
2 2010-01-26 -0.06219 0.02 0.024 0.016
2 2010-01-29 0.01989 0.03 0.036 0.024
;
run;
proc reg data = have outest=want noprint;
by stock date;
format date monyy5.;
model ret = mkt1 mkt2 mkt3;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After get WANT table, it is easy to get beta you want.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 10:49:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336916#M76435</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-01T10:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Beta Estimation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336926#M76439</link>
      <description>Thanks a lot ksharp, it works well.</description>
      <pubDate>Wed, 01 Mar 2017 11:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/336926#M76439</guid>
      <dc:creator>MAC1430</dc:creator>
      <dc:date>2017-03-01T11:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Beta Estimation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/448173#M112717</link>
      <description>&lt;P&gt;how do you get beta (PROC GLIMMIX Beta distribution) back on original scale?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;glimMIX&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;CLASS Phase TRT DAY ID;&lt;/P&gt;
&lt;P&gt;MODEL DMIBWnew = TRT|phase /dist=beta DDFM=KR SOLUTION;&lt;/P&gt;
&lt;P&gt;Random DAY/residual SUBJECT=ID;&lt;/P&gt;
&lt;P&gt;LSmeans trt /DIFF ADJUST=SIMULATE (REPORT SEED=&lt;STRONG&gt;121211&lt;/STRONG&gt;) cl adjdfe=row;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;; &lt;STRONG&gt;Quit&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:41:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Beta-Estimation/m-p/448173#M112717</guid>
      <dc:creator>AgReseach7</dc:creator>
      <dc:date>2018-03-23T14:41:40Z</dc:date>
    </item>
  </channel>
</rss>

