<?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 I have a problem in the formation model to calculate the Spearman coefficient of permutations (manual means without the use of Spearman coefficient of built-in device) I arrived for this model .. And stood in the programming Spearman coefficient .. in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/I-have-a-problem-in-the-formation-model-to-calculate-the/m-p/183494#M1839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Welcome Rick Wicklin, FD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;I am a master's student in mathematical statistics ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;I have a problem in the formation model to calculate the Spearman coefficient of permutations (manual means without the use of Spearman coefficient of built-in device)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;I arrived for this model .. And stood in the programming Spearman coefficient .&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="color: #ff0000;"&gt;DM 'LOG; CLEAR; OUTPUT; CLEAR;';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;% let n = 3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;data perm &amp;amp; n (drop = i);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;array a {&amp;amp; n};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;do i = 1 to &amp;amp;n; a &lt;I&gt; = i;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;do i = 1 to fact (&amp;amp; n);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call allperm (i, of a &lt;LI&gt;);&lt;/LI&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;proc print data = perm &amp;amp;n;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;proc iml;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;use perm &amp;amp;n;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;read all var {a1 a2 a3} into b;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;print b;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;I hope to help you ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks in advance for your cooperation ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Every year, you are fine ..&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Dec 2013 23:01:01 GMT</pubDate>
    <dc:creator>sultan_alhothli</dc:creator>
    <dc:date>2013-12-28T23:01:01Z</dc:date>
    <item>
      <title>I have a problem in the formation model to calculate the Spearman coefficient of permutations (manual means without the use of Spearman coefficient of built-in device) I arrived for this model .. And stood in the programming Spearman coefficient ..</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/I-have-a-problem-in-the-formation-model-to-calculate-the/m-p/183494#M1839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Welcome Rick Wicklin, FD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;I am a master's student in mathematical statistics ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;I have a problem in the formation model to calculate the Spearman coefficient of permutations (manual means without the use of Spearman coefficient of built-in device)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;I arrived for this model .. And stood in the programming Spearman coefficient .&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="color: #ff0000;"&gt;DM 'LOG; CLEAR; OUTPUT; CLEAR;';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;% let n = 3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;data perm &amp;amp; n (drop = i);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;array a {&amp;amp; n};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;do i = 1 to &amp;amp;n; a &lt;I&gt; = i;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;do i = 1 to fact (&amp;amp; n);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call allperm (i, of a &lt;LI&gt;);&lt;/LI&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;proc print data = perm &amp;amp;n;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;proc iml;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;use perm &amp;amp;n;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;read all var {a1 a2 a3} into b;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;print b;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;I hope to help you ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks in advance for your cooperation ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Every year, you are fine ..&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 23:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/I-have-a-problem-in-the-formation-model-to-calculate-the/m-p/183494#M1839</guid>
      <dc:creator>sultan_alhothli</dc:creator>
      <dc:date>2013-12-28T23:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem in the formation model to calculate the Spearman coefficient of permutations (manual means without the use of Spearman coefficient of built-in device) I arrived for this model .. And stood in the programming Spearman coefficient ..</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/I-have-a-problem-in-the-formation-model-to-calculate-the/m-p/183495#M1840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Spearman correlation is just the Pearson correlation of the ranks. For your permutation data, the ranks of the data equals the data themselves, right? So the Spearman correlation of the permutations is identical to regular Pearson computation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see this, run the following:&lt;/P&gt;&lt;P&gt;ods select PearsonCorr SpearmanCorr;&lt;/P&gt;&lt;P&gt;proc corr data = perm&amp;amp;n pearson spearman; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Presumably you are familiar with how to compute the Pearson correlation manually. If not, see any textbook, or the doc for the CORR procedure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 12:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/I-have-a-problem-in-the-formation-model-to-calculate-the/m-p/183495#M1840</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-12-31T12:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem in the formation model to calculate the Spearman coefficient of permutations (manual means without the use of Spearman coefficient of built-in device) I arrived for this model .. And stood in the programming Spearman coefficient ..</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/I-have-a-problem-in-the-formation-model-to-calculate-the/m-p/183496#M1841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First: Happy new year to you ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, thank you for your response objective ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I my English a little bit weak .. I hope that is not affected in the delivery of my idea to you ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I do not want to use the built-in Spearman coefficient within the SAS ..&lt;/P&gt;&lt;P&gt;I know the method of calculating the Spearman coefficient manually .. but when you have been applying method in Alsace in standing problem while Calculate the difference between the first row and the rest of the rows ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) What is the method to use ( do loop ) in ( proc iml ) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:26:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/I-have-a-problem-in-the-formation-model-to-calculate-the/m-p/183496#M1841</guid>
      <dc:creator>sultan_alhothli</dc:creator>
      <dc:date>2013-12-31T13:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem in the formation model to calculate the Spearman coefficient of permutations (manual means without the use of Spearman coefficient of built-in device) I arrived for this model .. And stood in the programming Spearman coefficient ..</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/I-have-a-problem-in-the-formation-model-to-calculate-the/m-p/183497#M1842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC IML has a CORR function that you can use for Pearson or Spearman correlations. See &lt;A href="http://support.sas.com/documentation/cdl/en/imlug/66112/HTML/default/viewer.htm#imlug_langref_sect072.htm" title="http://support.sas.com/documentation/cdl/en/imlug/66112/HTML/default/viewer.htm#imlug_langref_sect072.htm"&gt;SAS/IML(R) 12.3 User's Guide&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want to write a module that reproduces the built-in computations, use the 'MyCorr' function in the article &lt;A href="http://blogs.sas.com/content/iml/2010/12/08/computing-covariance-and-correlation-matrices/" title="http://blogs.sas.com/content/iml/2010/12/08/computing-covariance-and-correlation-matrices/"&gt; Computing covariance and correlation matrices - The DO Loop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 20:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/I-have-a-problem-in-the-formation-model-to-calculate-the/m-p/183497#M1842</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-12-31T20:49:38Z</dc:date>
    </item>
  </channel>
</rss>

