<?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 SAS annualized value in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-annualized-value/m-p/649105#M22244</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a database with monthly observation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-05-20 at 08.53.36.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39646iE454FE9E1C1E3FA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-05-20 at 08.53.36.png" alt="Screenshot 2020-05-20 at 08.53.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i want to annualize volatility and Sharpe ratio, i used this piece of code for each month:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql;
create table sampledecember1 as
select i.*, sum(EW*ret) as EW_ret,
/*create annualized volatility*/
sum((sqrt(12)*(volatility))*100) as vol_annual,
/*create annualized return*/
sum(((1+ret)**12)-1) as ret_annual,
sum(EW*L_beta) as ex_ante_beta
from Sampledecember i
group by month_bucket;&lt;/PRE&gt;&lt;PRE&gt;data sampledecember1a;
set sampledecember1;
/*create annualized Sharpe ratio*/
SP_annual= sum(ret_annual/vol_annual);
by month_bucket;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result value are too higher.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is correct this code?&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 07:20:11 GMT</pubDate>
    <dc:creator>Lukito</dc:creator>
    <dc:date>2020-05-20T07:20:11Z</dc:date>
    <item>
      <title>SAS annualized value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-annualized-value/m-p/649105#M22244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a database with monthly observation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-05-20 at 08.53.36.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39646iE454FE9E1C1E3FA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-05-20 at 08.53.36.png" alt="Screenshot 2020-05-20 at 08.53.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i want to annualize volatility and Sharpe ratio, i used this piece of code for each month:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql;
create table sampledecember1 as
select i.*, sum(EW*ret) as EW_ret,
/*create annualized volatility*/
sum((sqrt(12)*(volatility))*100) as vol_annual,
/*create annualized return*/
sum(((1+ret)**12)-1) as ret_annual,
sum(EW*L_beta) as ex_ante_beta
from Sampledecember i
group by month_bucket;&lt;/PRE&gt;&lt;PRE&gt;data sampledecember1a;
set sampledecember1;
/*create annualized Sharpe ratio*/
SP_annual= sum(ret_annual/vol_annual);
by month_bucket;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result value are too higher.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is correct this code?&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 07:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-annualized-value/m-p/649105#M22244</guid>
      <dc:creator>Lukito</dc:creator>
      <dc:date>2020-05-20T07:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS annualized value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-annualized-value/m-p/649120#M22252</link>
      <description>&lt;P&gt;When using summary functions with group by, only the summarized columns and the group columns should be in the select, otherwise you will get a "remerge" :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table sampledecember1 as
select i.month_bucket, sum(EW*ret) as EW_ret,
/*create annualized volatility*/
sum((sqrt(12)*(volatility))*100) as vol_annual,
/*create annualized return*/
sum(((1+ret)**12)-1) as ret_annual,
sum(EW*L_beta) as ex_ante_beta
from Sampledecember i
group by month_bucket;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 07:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-annualized-value/m-p/649120#M22252</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-20T07:56:32Z</dc:date>
    </item>
  </channel>
</rss>

