<?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: Standard Deviation across Columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Standard-Deviation-across-Columns/m-p/611506#M178228</link>
    <description>&lt;P&gt;Ugh I can't believe what I did... I tried that but I put the STD() in the wrong place. I put it before each of the variables not thinking!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 03:13:57 GMT</pubDate>
    <dc:creator>anweinbe</dc:creator>
    <dc:date>2019-12-13T03:13:57Z</dc:date>
    <item>
      <title>Standard Deviation across Columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Standard-Deviation-across-Columns/m-p/611501#M178224</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to create a standard deviation across columns?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had to calculate the Return on Assets for every firm-year in my table along with 4 years of lags. I then need to take the standard deviation of each of the 5 years worth of ROA's. The problem is they are all in columns next to each other. I was hoping to create a new column that showed the SD of the preceding 5 columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to figure out the SD for Microsoft 2018 using the 5 numbers next to it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Microsoft - 2018 - 3.75 - 3.56 - 3.43 - 4.52 - 1.25&lt;/P&gt;
&lt;P&gt;Microsoft - 2017 - 3.56 - 3.43 - 4.52 - 1.25 - 2.45&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 02:32:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Standard-Deviation-across-Columns/m-p/611501#M178224</guid>
      <dc:creator>anweinbe</dc:creator>
      <dc:date>2019-12-13T02:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Standard Deviation across Columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Standard-Deviation-across-Columns/m-p/611504#M178226</link>
      <description>&lt;P&gt;Use the STD function.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl//en/lefunctionsref/69762/HTML/default/viewer.htm#p1fani7wj5h6ihn1j1kijj17ylpq.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl//en/lefunctionsref/69762/HTML/default/viewer.htm#p1fani7wj5h6ihn1j1kijj17ylpq.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/287480"&gt;@anweinbe&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to create a standard deviation across columns?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had to calculate the Return on Assets for every firm-year in my table along with 4 years of lags. I then need to take the standard deviation of each of the 5 years worth of ROA's. The problem is they are all in columns next to each other. I was hoping to create a new column that showed the SD of the preceding 5 columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to figure out the SD for Microsoft 2018 using the 5 numbers next to it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Microsoft - 2018 - 3.75 - 3.56 - 3.43 - 4.52 - 1.25&lt;/P&gt;
&lt;P&gt;Microsoft - 2017 - 3.56 - 3.43 - 4.52 - 1.25 - 2.45&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 02:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Standard-Deviation-across-Columns/m-p/611504#M178226</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-13T02:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Standard Deviation across Columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Standard-Deviation-across-Columns/m-p/611506#M178228</link>
      <description>&lt;P&gt;Ugh I can't believe what I did... I tried that but I put the STD() in the wrong place. I put it before each of the variables not thinking!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 03:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Standard-Deviation-across-Columns/m-p/611506#M178228</guid>
      <dc:creator>anweinbe</dc:creator>
      <dc:date>2019-12-13T03:13:57Z</dc:date>
    </item>
  </channel>
</rss>

