<?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: Standered Deviation ! in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Standered-Deviation/m-p/172709#M8955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first part of your question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc transpose data=have out=long;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;nbr&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data wide;&lt;/P&gt;&lt;P&gt;set long;&lt;/P&gt;&lt;P&gt;format h $ 5.;&lt;/P&gt;&lt;P&gt;by &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;nbr&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;retain c;&lt;/P&gt;&lt;P&gt;retain h;&lt;/P&gt;&lt;P&gt;c=c+1;&lt;/P&gt;&lt;P&gt;if first.nbr then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; h="1-12";&lt;/P&gt;&lt;P&gt;&amp;nbsp; c=1;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;else if c &amp;gt;= 13 then h="13-24";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=wide std ;&lt;/P&gt;&lt;P&gt;class &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;nbr&lt;/SPAN&gt; h;&lt;/P&gt;&lt;P&gt;var col1 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 07:30:28 GMT</pubDate>
    <dc:creator>mohamed_zaki</dc:creator>
    <dc:date>2015-02-18T07:30:28Z</dc:date>
    <item>
      <title>Standered Deviation !</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Standered-Deviation/m-p/172708#M8954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;s&lt;BR /&gt;I have data for credit card customers with their month on month balances ( In columns ) for last 24 month .&lt;/P&gt;&lt;P&gt;This makes my data with 25 column ( 1 card nbr + 24 for balances ).&lt;/P&gt;&lt;P&gt;I want to compute std dev of coumn 1-12 and 13-24 respectively .&lt;/P&gt;&lt;P&gt;Also i want to recompute std dev for columns 1-12 and 13-24 by excluding MAX from each set .&lt;/P&gt;&lt;P&gt;How can i do this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 05:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Standered-Deviation/m-p/172708#M8954</guid>
      <dc:creator>AKSHAYMOGHE</dc:creator>
      <dc:date>2015-02-18T05:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Standered Deviation !</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Standered-Deviation/m-p/172709#M8955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first part of your question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc transpose data=have out=long;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;nbr&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data wide;&lt;/P&gt;&lt;P&gt;set long;&lt;/P&gt;&lt;P&gt;format h $ 5.;&lt;/P&gt;&lt;P&gt;by &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;nbr&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;retain c;&lt;/P&gt;&lt;P&gt;retain h;&lt;/P&gt;&lt;P&gt;c=c+1;&lt;/P&gt;&lt;P&gt;if first.nbr then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; h="1-12";&lt;/P&gt;&lt;P&gt;&amp;nbsp; c=1;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;else if c &amp;gt;= 13 then h="13-24";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=wide std ;&lt;/P&gt;&lt;P&gt;class &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;nbr&lt;/SPAN&gt; h;&lt;/P&gt;&lt;P&gt;var col1 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 07:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Standered-Deviation/m-p/172709#M8955</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-02-18T07:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Standered Deviation !</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Standered-Deviation/m-p/172710#M8956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, as mentioned above you want to normalise your data.&amp;nbsp; This is a method of taking columns and creating records from them.&amp;nbsp; The opposite is transposed where records are taken and columns created (which you currently have).&amp;nbsp; Once you have your normalised table you can do the means as above, then with an extra 2 steps:&lt;/P&gt;&lt;P&gt;proc sort data=xyz;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by nbr descending col1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data xyz;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set xyz;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by nbr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if first.nbr then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc means...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 09:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Standered-Deviation/m-p/172710#M8956</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-02-18T09:30:34Z</dc:date>
    </item>
  </channel>
</rss>

