<?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 std function in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/std-function/m-p/244560#M56086</link>
    <description>&lt;P&gt;Please help. I'm trying to calculate the std deviation of a variable and output as a new variable.&lt;/P&gt;&lt;P&gt;used: sales_dev = std(sales);&lt;/P&gt;&lt;P&gt;got this error message;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 71-185: The STD function call does not have enough arguments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2016 22:32:51 GMT</pubDate>
    <dc:creator>bronco</dc:creator>
    <dc:date>2016-01-19T22:32:51Z</dc:date>
    <item>
      <title>std function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/std-function/m-p/244560#M56086</link>
      <description>&lt;P&gt;Please help. I'm trying to calculate the std deviation of a variable and output as a new variable.&lt;/P&gt;&lt;P&gt;used: sales_dev = std(sales);&lt;/P&gt;&lt;P&gt;got this error message;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 71-185: The STD function call does not have enough arguments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 22:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/std-function/m-p/244560#M56086</guid>
      <dc:creator>bronco</dc:creator>
      <dc:date>2016-01-19T22:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: std function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/std-function/m-p/244562#M56087</link>
      <description>std function requires atleast two variables, since you mentioned only one it is giving this error. Also i believe you are using this std in data step, if you have only one variable then please use group by statement</description>
      <pubDate>Tue, 19 Jan 2016 23:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/std-function/m-p/244562#M56087</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-01-19T23:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: std function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/std-function/m-p/244574#M56089</link>
      <description>Since SAS processes data row by row, thats not quite how it works. The STD() function in a data step is intended to compute the STD of a set of values in the same row. &lt;BR /&gt;&lt;BR /&gt;Proc means is the way to calculate it for a column. &lt;BR /&gt;&lt;BR /&gt;Proc means data=sashelp.class;&lt;BR /&gt;Var weight;&lt;BR /&gt;Output out=want;&lt;BR /&gt;Run; &lt;BR /&gt;&lt;BR /&gt;To get it merged back into the data step merge it back in. &lt;BR /&gt;&lt;BR /&gt;You can also use SQL where the function behaves as expected but SQL does not and will merge it in directly &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; You do get a note in the log which many places frown upon. &lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;Create table want2 as&lt;BR /&gt;Select *, std(weight) as std_var&lt;BR /&gt;From sashelp.class;&lt;BR /&gt;Quit;</description>
      <pubDate>Wed, 20 Jan 2016 01:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/std-function/m-p/244574#M56089</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-20T01:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: std function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/std-function/m-p/247008#M56276</link>
      <description>If you want to calculate the std for specific groups, add them into a GROUP BY clause.</description>
      <pubDate>Sat, 30 Jan 2016 01:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/std-function/m-p/247008#M56276</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-30T01:47:26Z</dc:date>
    </item>
  </channel>
</rss>

