<?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 Re: Having standard deviation grouped by year and cusip in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Having-standard-deviation-grouped-by-year-and-cusip/m-p/572917#M161700</link>
    <description>proc sql;&lt;BR /&gt;create table Rstd as &lt;BR /&gt; select cusip, year,std(dailyr) as with_in_std &lt;BR /&gt;  from rvol&lt;BR /&gt;   group by cusip, year;&lt;BR /&gt;quit;</description>
    <pubDate>Thu, 11 Jul 2019 19:48:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-07-11T19:48:19Z</dc:date>
    <item>
      <title>Having standard deviation grouped by year and cusip</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-standard-deviation-grouped-by-year-and-cusip/m-p/572908#M161695</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Rstd as 
 select cusip &lt;STRONG&gt;and year&lt;/STRONG&gt;,std(dailyr) as with_in_std 
  from rvol
   group by cusip, year;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think this time I am even closer to the right answer than before. feels like I am learnings SAS more.&lt;/P&gt;&lt;P&gt;Yes. I know I do not have to put &lt;STRONG&gt;and year&lt;/STRONG&gt; after cusip but simply do not know how to have grouped std...&lt;/P&gt;&lt;P&gt;I did both&amp;nbsp;&lt;CODE class=" language-sas"&gt;select cusip,std(dailyr) as with_in_std and&amp;nbsp;select &lt;STRONG&gt;year&lt;/STRONG&gt;,std(dailyr) as with_in_std&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;and it worked so good and saw groups std eight by cusip or year.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;BUT... I want grouping using both year and cusip simultaneously.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help very much!&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 19:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-standard-deviation-grouped-by-year-and-cusip/m-p/572908#M161695</guid>
      <dc:creator>JKCho</dc:creator>
      <dc:date>2019-07-11T19:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Having standard deviation grouped by year and cusip</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-standard-deviation-grouped-by-year-and-cusip/m-p/572917#M161700</link>
      <description>proc sql;&lt;BR /&gt;create table Rstd as &lt;BR /&gt; select cusip, year,std(dailyr) as with_in_std &lt;BR /&gt;  from rvol&lt;BR /&gt;   group by cusip, year;&lt;BR /&gt;quit;</description>
      <pubDate>Thu, 11 Jul 2019 19:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-standard-deviation-grouped-by-year-and-cusip/m-p/572917#M161700</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-11T19:48:19Z</dc:date>
    </item>
  </channel>
</rss>

