<?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: Scott-Knott Multiple Comparison ... Is there any procedure in SAS?? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/227715#M12028</link>
    <description>&lt;P&gt;Thank you for your contribution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we'll test and compare this protocol and them we'll leave you any comment. Untill now we appreciate this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2015 17:03:42 GMT</pubDate>
    <dc:creator>jonatan_velarde</dc:creator>
    <dc:date>2015-09-29T17:03:42Z</dc:date>
    <item>
      <title>Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195499#M10419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day my SAS friends:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always is a pleasure to participate here, so here we go one more time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working in some research and many authors located in a especial region of Brasil, use to be comfortable using&amp;nbsp; SCOTT-KNOTT Multiple Comparison, so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always use the other and classic procedures (Tukey, Duncan, ETC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone tell me please!!! how to get &lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;SCOTT-KNOTT multiple comparison in SAS.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;King regard from Brasil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 18:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195499#M10419</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2015-03-05T18:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195500#M10420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonatan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't, though I found lots of reference to R packages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found it fascinating that the only people publishing papers that use it are from Brazil.&amp;nbsp; I imagine that there is one 'enthusiast' who has converted the rest!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 20:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195500#M10420</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2015-03-06T20:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195501#M10421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not aware of a sas macro. I wrote a FORTRAN program to do this more than 30 years ago, and used it for a few years. I know it has the intuitive advantage of 'creating' non-overlapping groups of LSMEANS, based on the means and standard errors. Basically, it is a type of cluster analysis (of means). However, early assessments showed that the experiment-wise Type I error rate can be high with this method. This would likely be the reason why the method is very uncommon, and &lt;EM&gt;not&lt;/EM&gt; available within SAS procedures. I have not read anything about it in decades, so there may be some counter-arguments to the criticisms. Someone who has the time and knows PROC IML could probably take one of the multiple-comparison macros that have been written by non-SAS programmers, and add a routine for this method. I would start with the macro written by H.P. Piepho.&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://agrobiol.sggw.waw.pl/~cbcs/articles/CBCS_7_1_2.pdf" title="http://agrobiol.sggw.waw.pl/~cbcs/articles/CBCS_7_1_2.pdf"&gt;http://agrobiol.sggw.waw.pl/~cbcs/articles/CBCS_7_1_2.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This would take some expertise with IML, and time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, you could call a relevant R function for SK from within SAS IML to do this. You would have to learn about the SAS-R linkages first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 20:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195501#M10421</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-03-06T20:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195502#M10422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, did you get some routine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 01:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195502#M10422</guid>
      <dc:creator>invisibleman</dc:creator>
      <dc:date>2015-07-25T01:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195503#M10423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't looked since I don't need it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 12:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195503#M10423</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-07-27T12:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195504#M10424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there :&lt;/P&gt;&lt;P&gt;Unfortunately still don't have it &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; , such a bad luck hum?&lt;/P&gt;&lt;P&gt;i think the person deveplops this method for SAS will be very famous&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 16:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195504#M10424</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2015-08-10T16:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195505#M10425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why? As @lvm said, the experiment wise type I error with this method is high, and there are much better methods for controlling for this sort of error already available using the ADJUST= option in the linear models procedure, and in PROC MULTTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 12:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195505#M10425</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-08-11T12:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195506#M10426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SteveDenham:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For sure, this is the objective to be tested, could you send us an example using these methodologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 12:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195506#M10426</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2015-08-11T12:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195507#M10427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start here in the documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_mixed_syntax08.htm"&gt;https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_mixed_syntax08.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also the Shared Concepts for LSMEANS and the documentation for PROC MULTTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 17:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195507#M10427</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-08-11T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195508#M10428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fiz uma busca ampla sobre a existência de tal rotina no SAS, no entanto, nada encontrei. Não sei qual as limitações de uso, mas sei que essa rotina está disponível no R e em um software livre chamado ASSISTAT. No entanto leve em consideração que esse teste não é propriamente para comparações de médias e sim um teste de agrupamentos a partir uma única variável, apresentando limitações teóricas como já descritas acima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 01:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195508#M10428</guid>
      <dc:creator>LuisCarlos</dc:creator>
      <dc:date>2015-08-29T01:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195509#M10429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ola Luis Carlos:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;obrigado pela tua resposta, nesse sentido voce tem como me informar onde tem aquela rotina de R por favor??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;desde ja agradeço tua resposta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abç&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 12:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195509#M10429</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2015-08-29T12:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195510#M10430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;/*Scott-Knott in R and SAS (integration*/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;*;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000; text-decoration: underline;"&gt;/*Tutorial by:&lt;/SPAN&gt; (&lt;A href="https://alyssonjallessite.wordpress.com/sobre-2-2/" title="https://alyssonjallessite.wordpress.com/sobre-2-2/"&gt;Alysson Jalles) Consultoria: &lt;/A&gt;&lt;A href="http://www.alyssonjallessite.wordpress.com*" target="_blank"&gt;www.alyssonjallessite.wordpress.com*&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; color: #008000; font-size: 13.3333330154419px; text-decoration: underline;"&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;*I have the solution;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;*I've wrote a R/SAS routine for this &lt;SPAN lang="en"&gt;purpose&lt;/SPAN&gt;;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*You can run R inside SAS to do it!;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*To set SAS to run R codes follow my tutorial in:&lt;SPAN style="color: #0000ff;"&gt; &lt;A _jive_internal="true" href="https://communities.sas.com/message/296841#296841" style="text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; text-decoration: underline;"&gt;https://communities.sas.com/message/296841#296841;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;*Copy all of this message inside SAS to perform the analysis;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*I'll provide an example with a SAS simulated dataset of a &lt;SPAN style="font-size: 10pt;"&gt;Randomized Complete Block Design (RCBD);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*=======================================================================;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Simulating a RCBD experiment ===========================================BEGIN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*=======================================================================;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*10 TREATMENTS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*3 REPLICATION;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;proc plan&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;seed&lt;/SPAN&gt;=123456;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;factors&lt;/SPAN&gt; GEN=10 &lt;SPAN style="color: #0000ff;"&gt;ordered&lt;/SPAN&gt; REP=3 &lt;SPAN style="color: #0000ff;"&gt;ordered&lt;/SPAN&gt;/&lt;SPAN style="color: #0000ff;"&gt;noprint&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;output out&lt;/SPAN&gt;=RCBD_TEST&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;/*GEN cvals=('GEN1' 'GEN2' 'GEN3' 'GEN4' 'GEN5' 'GEN6' 'GEN7' 'GEN8' 'GEN9' 'GEN10')*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;&lt;SPAN style="color: #000000;"&gt;GEN&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;nvals&lt;/SPAN&gt;=(&lt;SPAN style="color: #ff00ff;"&gt;1 2 3 4 5 6 7 8 9 10&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;REP &lt;SPAN style="color: #0000ff;"&gt;nvals&lt;/SPAN&gt;=(&lt;SPAN style="color: #ff00ff;"&gt;1 2 3&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Simulating VARIABLES - BEGIN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #333399;"&gt;data&lt;/SPAN&gt; RCBD_TEST; &lt;SPAN style="color: #0000ff;"&gt;set&lt;/SPAN&gt; RCBD_TEST;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;call&lt;/SPAN&gt; streaminit(&lt;SPAN style="color: #ff0000;"&gt;8789&lt;/SPAN&gt;); &lt;SPAN style="color: #008000;"&gt;/*SEED= 8789*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;VAR1=rand('&lt;SPAN style="color: #ff00ff;"&gt;normal&lt;/SPAN&gt;',110, 15);&lt;SPAN style="color: #008000;"&gt; /*MEAN 110: STD: 15*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #333399;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #333399;"&gt;data&lt;/SPAN&gt; RCBD_TEST; set RCBD_TEST;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;call&lt;/SPAN&gt; streaminit(&lt;SPAN style="color: #ff0000;"&gt;907854&lt;/SPAN&gt;); &lt;SPAN style="color: #008000;"&gt;/*SEED= 907854*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;VAR2=rand('&lt;SPAN style="color: #ff00ff;"&gt;normal&lt;/SPAN&gt;',3000, 751);&lt;SPAN style="color: #333399;"&gt;run&lt;/SPAN&gt;; &lt;SPAN style="color: #008000;"&gt;/*MEAN 3000: STD: 751*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Simulating VARIABLES - END;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*=======================================================================;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Simulating and RCBD experiment =====================================END;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*=======================================================================;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Printing dataset, first 6 observations of simulated dataset:;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #333399;"&gt;&lt;STRONG&gt;proc print&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;data&lt;/SPAN&gt;=RCBD_TEST (&lt;SPAN style="color: #0000ff;"&gt;obs&lt;/SPAN&gt;=6); &lt;SPAN style="color: #333399;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;/*Scott-Knott statistic of VAR1 and VAR2 in R language*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Installing "ScottKnott" package in R;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*ScottKnott in an R package to perform Scott-Knott analysis;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*It will appear a windows, just click on the nearest mirror of your current place;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;* You just need to do it ONCE!;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #333399; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;proc iml&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333399; font-size: 13.3333330154419px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #0000ff;"&gt;title &lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff;"&gt;"Installing ScottKnott package in R (integration R with SAS)"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;submit&lt;/SPAN&gt; / R;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_______Begin of R code_________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #ff0000;"&gt; install.packages&lt;/SPAN&gt;("ScottKnott")&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_______End of R code_________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;endsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Installing "xlsx" package in R;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*xlsx is a package to export Scott-Knott results in excel to your hard drive;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*to use this package you have to install the ultimate version of java in your computer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;A class="jive-link-external-small" href="https://www.java.com/pt_BR/download/"&gt;&lt;SPAN style="color: #0000ff;"&gt;https://www.java.com/pt_BR/download/&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*It will appear a windows, just click on the nearest mirror of your current place;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;* You just need to do it ONCE!;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #333399;"&gt;&lt;STRONG&gt;proc iml&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #333399;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #0000ff;"&gt;title &lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff;"&gt;"Installing xlsx package in R (integration R with SAS)"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #0000ff;"&gt;submit&lt;/SPAN&gt;/ R;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_______Begin of R code_________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;install.packages&lt;/SPAN&gt;("xlsx")&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_______End of R code_________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #0000ff;"&gt;endsubmit&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*****SCOTT-KNOTT ANALYSIS &lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;BEGINS&lt;/SPAN&gt; HERE..*******************************************************;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Changing treatments - GEN from numeric to factor type;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*This is necessary;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #333399;"&gt;&lt;STRONG&gt;proc iml&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;title&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff;"&gt;"Preparing variables (integration R with SAS)"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Exporting SAS dataset to R environment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;run&lt;/SPAN&gt; ExportDataSetToR(&lt;SPAN style="color: #ff00ff;"&gt;"WORK.RCBD_TEST"&lt;/SPAN&gt;, &lt;SPAN style="color: #ff00ff;"&gt;"RCBD_IN_R"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;submit&lt;/SPAN&gt; / R;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_______Begin of R code_________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#Class of GEN and REP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;class(RCBD_IN_R$GEN)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;class(RCBD_IN_R$REP)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#CONVERTING "GEN" and "REP" TO CHARACTER&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;RCBD_IN_R$GEN&amp;lt;-as.character(RCBD_IN_R$GEN)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;RCBD_IN_R$REP&amp;lt;-as.character(RCBD_IN_R$REP)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#Class of GEN and REP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;class(RCBD_IN_R$GEN)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;class(RCBD_IN_R$REP)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_______End of R code_________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;endsubmit&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;*quit;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;*Performing the Scott-Knott analysis;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;*We'll perform the analysis with 2 VARIABLES simultaneously, but you can extend this routine to N variables;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;title&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff;"&gt;"Performing ScottKnott clustering in R (integration R with SAS) - by: Alysson Jalles"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;submit&lt;/SPAN&gt; / R;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_______Begin of R code_________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;require&lt;/SPAN&gt;(ScottKnott) &lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;#Package to perform the SK analysis&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;require&lt;/SPAN&gt;(xlsx)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;#Package to perform the output in XLSX of results&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #339966;"&gt;#For other kind of design as CRD, factorial, etc, consult the manual of R ScottKnott package&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #339966;"&gt;#in&lt;/SPAN&gt;: &lt;A class="jive-link-external-small" href="https://cran.r-project.org/web/packages/ScottKnott/ScottKnott.pdf"&gt;https://cran.r-project.org/web/packages/ScottKnott/ScottKnott.pdf&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#Applying univariate Scott-Knott clustering&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;VAR1a &amp;lt;- &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;SK&lt;/STRONG&gt;&lt;/SPAN&gt;(&lt;SPAN style="color: #000080;"&gt;x&lt;/SPAN&gt;=&lt;STRONG&gt;RCBD_IN_R&lt;/STRONG&gt;, y=&lt;STRONG&gt;RCBD_IN_R&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;$&lt;/SPAN&gt;&lt;STRONG&gt;VAR1&lt;/STRONG&gt;, model=&lt;SPAN style="color: #ff00ff;"&gt;"y~GEN+REP"&lt;/SPAN&gt;, which=&lt;SPAN style="color: #ff00ff;"&gt;"GEN"&lt;/SPAN&gt;, sig.level=&lt;SPAN style="color: #0000ff;"&gt;0.05&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#summary(VAR1a)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;VAR2a &amp;lt;- &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;SK&lt;/STRONG&gt;&lt;/SPAN&gt;(x=&lt;STRONG&gt;RCBD_IN_R&lt;/STRONG&gt;, y=&lt;STRONG&gt;RCBD_IN_R&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;$&lt;/SPAN&gt;&lt;STRONG&gt;VAR2&lt;/STRONG&gt;, model=&lt;SPAN style="color: #ff00ff;"&gt;"y~GEN+REP"&lt;/SPAN&gt;, which=&lt;SPAN style="color: #ff00ff;"&gt;"GEN"&lt;/SPAN&gt;, sig.level=&lt;SPAN style="color: #0000ff;"&gt;0.05&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#summary(VAR2a)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#Summary&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;VAR1b&amp;lt;-(&lt;SPAN style="color: #ff0000;"&gt;summary&lt;/SPAN&gt;(VAR1a))&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;VAR2b&amp;lt;-(&lt;SPAN style="color: #ff0000;"&gt;summary&lt;/SPAN&gt;(VAR2a))&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_____________________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#RENAMING MEANS TO THE NAME OF VARIABLE EVALUATED&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;names(VAR1b)[names(VAR1b)==&lt;SPAN style="color: #ff00ff;"&gt;"Means"&lt;/SPAN&gt;] &amp;lt;- &lt;SPAN style="color: #ff00ff;"&gt;"VAR1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;names(VAR2b)[names(VAR2b)==&lt;SPAN style="color: #ff00ff; font-size: 13.3333330154419px;"&gt;"Means"&lt;/SPAN&gt;] &amp;lt;- &lt;SPAN style="color: #ff00ff;"&gt;"VAR2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#RENAMING SK(5%)TO SK PLUS NAME OF VARIABLE EVALUATED&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;names(VAR1b)[names(VAR1b)==&lt;SPAN style="color: #ff00ff;"&gt;"SK(5%)"&lt;/SPAN&gt;] &amp;lt;- &lt;SPAN style="color: #ff00ff;"&gt;"SK_VAR1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;names(VAR2b)[names(VAR2b)==&lt;SPAN style="color: #ff00ff; font-size: 13.3333330154419px;"&gt;"SK(5%)"&lt;/SPAN&gt;] &amp;lt;-&lt;SPAN style="color: #ff00ff;"&gt; "SK_VAR2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#MERGING SCOTT-KNOTT RESULTS IN A SINGLE DATASET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SK &amp;lt;-&lt;SPAN style="color: #ff0000;"&gt;Reduce&lt;/SPAN&gt;(function(x, y) &lt;SPAN style="color: #ff0000;"&gt;merge&lt;/SPAN&gt;(x, y, all=TRUE),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list(&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; VAR1b,&amp;nbsp; &lt;SPAN style="color: #008000;"&gt;#VAR1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; VAR2b&amp;nbsp; &lt;SPAN style="color: #008000;"&gt;#VAR2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; ))&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#RENAMING NAME OF VAR "Levels" TO GEN [TREATMENTS]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;names(SK)[names(SK)==&lt;SPAN style="color: #ff00ff;"&gt;"Levels"&lt;/SPAN&gt;] &amp;lt;- &lt;SPAN style="color: #ff00ff;"&gt;"GEN"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_______End of R code_________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;endsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Exporting R results to your hard drive and SAS Environment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;title&lt;/SPAN&gt; "&lt;SPAN style="color: #ff00ff;"&gt;Exporting results to Windows hard drive and SAS Environment (integration R with SAS)"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;title2&lt;/SPAN&gt; "&lt;SPAN style="color: #ff00ff;"&gt;Your file: 'Scott_Knott_output.xlsx' is in C:\ of your HD&lt;/SPAN&gt;";&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Exporting results from R to SAS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;run&lt;/SPAN&gt; importdatasetfromR&lt;SPAN style="color: #ff00ff;"&gt;("WORK.SCOTT_KNOTT_SAS"&lt;/SPAN&gt;,&lt;SPAN style="color: #ff00ff;"&gt;"SK"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;submit&lt;/SPAN&gt; / R;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_______Begin of R code_________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;write.xlsx&lt;/SPAN&gt;(SK, "Scott_Knott_output.xlsx")&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;#_______End of R code_________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;endsubmit&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Sorting treatments - GEN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #333399;"&gt;&lt;STRONG&gt;proc sort&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #0000ff;"&gt;by&lt;/SPAN&gt; GEN; &lt;SPAN style="color: #333399;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #008000;"&gt;*Printing results of Scott-Knott analysis in SAS (sig.level=&lt;SPAN style="color: #0000ff;"&gt;0.05&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Title&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff;"&gt; "Scott-Knott Analysis results to RCBD design in SAS, by: Alysson Jalles"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #333399;"&gt;&lt;STRONG&gt;proc print&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;data&lt;/SPAN&gt;=SCOTT_KNOTT_SAS &lt;SPAN style="color: #0000ff;"&gt;noobs&lt;/SPAN&gt;;&lt;SPAN style="color: #333399;"&gt;&lt;STRONG&gt; run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #333399;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="color: #008000; font-size: 13.3333330154419px;"&gt;*****SCOTT-KNOTT ANALYSIS &lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;ENDS&lt;/SPAN&gt;&lt;/SPAN&gt; HERE..*******************************************************;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;IMG class="jiveImage" src="https://photos-2.dropbox.com/t/2/AAAiinPEhjYk-X-Yb8i7xkKyVcXAgHnfEw0Kddj0H9vN5A/12/339646554/png/32x32/1/_/1/2/SK_output.png/EIvcp9MCGKsJIAEoAQ/PSe-kFBtjWsywHMWpqUqtVmeGzPCqk8h89u0CPGNp9A?size=800x600&amp;amp;size_mode=2" style="font-size: 10pt;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Thanks for read my material :smileygrin:...&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 19:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/195510#M10430</guid>
      <dc:creator>invisibleman</dc:creator>
      <dc:date>2015-08-29T19:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/227715#M12028</link>
      <description>&lt;P&gt;Thank you for your contribution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we'll test and compare this protocol and them we'll leave you any comment. Untill now we appreciate this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/227715#M12028</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2015-09-29T17:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/227871#M12035</link>
      <description>&lt;P&gt;Good day my friend:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you know, ths SAS university edition is improveing each day, so i tried to use iyour code in SAS university edition and i could not finish the statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anybody caould help with this???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 16:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/227871#M12035</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2015-09-30T16:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/229701#M12102</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Hi&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50712" target="_self"&gt;jonatan_velarde&lt;/A&gt;..the bad news is that &lt;STRONG&gt;SAS university edition does not run any R code&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;img id="catindifferent" class="emoticon emoticon-catindifferent" src="https://communities.sas.com/i/smilies/16x16_cat-indifferent.png" alt="Cat Indifferent" title="Cat Indifferent" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;If you want to run this routine you should have the Commercial SAS version.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Or by other hand, you can run the second part of the routine totally in R or RStudio.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;#####################################################################################&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;#(English title:)Scott-Knott univariate clustering in R to RCBD.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#(Portuguese-Br title): Agrupamento univariado de Scott-Knott para DBC)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#routine By Alysson Jalles. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#&lt;A href="http://www.alyssonjallessite.wordpress.com" target="_blank"&gt;www.alyssonjallessite.wordpress.com&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Here we have 2 variables to evaluate.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Creating a&amp;nbsp;&lt;/FONT&gt;dataset&lt;FONT color="#008000"&gt; with RCBD data...&lt;/FONT&gt;&lt;BR /&gt;RCBD_IN_R&amp;lt;-read.table(header=&lt;FONT color="#000080"&gt;TRUE&lt;/FONT&gt;, text=(&lt;FONT color="#FF00FF"&gt;"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;GEN REP VAR1 VAR2 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;1 1 109.797 4296.39 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;1 2 109.325 3159.55 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;1 3 129.079 2550.13 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;2 1 124.041 3206.70 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;2 2 102.700 3498.19 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;2 3 90.762 2676.06 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;3 1 127.014 3287.07 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;3 2 127.461 2345.28 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;3 3 122.337 3649.71 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;4 1 95.214 2339.48 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;4 2 106.913 2118.81 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;4 3 107.182 2426.04 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;5 1 119.641 3811.88 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;5 2 94.830 4166.51 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;5 3 124.218 2457.73 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;6 1 110.261 2276.99 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;6 2 106.819 1494.28 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;6 3 103.399 1452.75 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;7 1 123.564 740.09 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;7 2 109.369 1561.06 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;7 3 122.680 1951.73 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;8 1 103.247 3259.35 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;8 2 103.542 3363.61 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;8 3 109.542 3149.99 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;9 1 113.026 1924.95 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;9 2 76.786 3041.53 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;9 3 91.773 1807.83 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;10 1 81.236 3458.72 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;10 2 95.125 3185.58 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;10 3 95.898 3039.91&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/FONT&gt;))&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Changing treatments - GEN from numeric to character type;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Class of GEN and REP&lt;/FONT&gt;&lt;BR /&gt;class(RCBD_IN_R$GEN)&lt;BR /&gt;class(RCBD_IN_R$REP)&lt;BR /&gt;&lt;FONT color="#008000"&gt;#CONVERTING "GEN" and "REP" TO CHARACTER&lt;/FONT&gt;&lt;BR /&gt;RCBD_IN_R$GEN&amp;lt;-as.character(RCBD_IN_R$GEN)&lt;BR /&gt;RCBD_IN_R$REP&amp;lt;-as.character(RCBD_IN_R$REP)&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Class of GEN and REP&lt;/FONT&gt;&lt;BR /&gt;class(RCBD_IN_R$GEN)&lt;BR /&gt;class(RCBD_IN_R$REP)&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Intalling packages to Analysis.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #Scott-Knott statistic of VAR1 and VAR2 in R language*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #Installing "ScottKnott" package in R;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #ScottKnott in an R package to perform Scott-Knott analysis;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #It will appear &lt;/FONT&gt;a windows&lt;FONT color="#008000"&gt;, just click on the nearest mirror of your current place;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #You just need to do it ONCE!;&lt;/FONT&gt;&lt;BR /&gt;install.packages(&lt;FONT color="#FF00FF"&gt;"ScottKnott"&lt;/FONT&gt;) &lt;FONT color="#008000"&gt;#To Performa SK analysis&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Installing "&lt;/FONT&gt;xlsx&lt;FONT color="#008000"&gt;" package in R;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #xlsx is a package to export Scott-Knott results in excel to your hard drive;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #to use this package you have to install the ultimate version of java in your computer:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #&lt;A href="https://www.java.com/pt_BR/download/" target="_blank"&gt;https://www.java.com/pt_BR/download/&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #When you click in install.packages("&lt;/FONT&gt;xlsx&lt;FONT color="#008000"&gt;") It will appear a windows, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #just click on the nearest mirror of your current place;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #You just need to do it ONCE!;&lt;/FONT&gt;&lt;BR /&gt;install.packages(&lt;FONT color="#FF00FF"&gt;"&lt;/FONT&gt;xlsx&lt;FONT color="#FF00FF"&gt;"&lt;/FONT&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color="#008000"&gt;#Package to export your dataset to excel&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Performing the Scott-Knott analysis;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #We'll perform the analysis with 2 VARIABLES simultaneously, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #but you can extend this routine to N variables;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #_______Begin of R code_________________&lt;/FONT&gt;&lt;BR /&gt;require(&lt;FONT color="#FF00FF"&gt;ScottKnott&lt;/FONT&gt;) &lt;FONT color="#008000"&gt;#Package to perform the SK analysis&lt;/FONT&gt;&lt;BR /&gt;require(&lt;FONT color="#FF00FF"&gt;xlsx&lt;/FONT&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT color="#008000"&gt;&amp;nbsp; #Package to perform the output in XLSX of results&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&lt;FONT color="#008000"&gt; #For other kind of design as CRD, factorial, etc, consult the manual of R ScottKnott package&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #in: &lt;A href="https://cran.r-project.org/web/packages/ScottKnott/ScottKnott.pdf" target="_blank"&gt;https://cran.r-project.org/web/packages/ScottKnott/ScottKnott.pdf&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&amp;nbsp; #Applying univariate Scott-Knott clustering&lt;/FONT&gt;&lt;BR /&gt;VAR1a &amp;lt;- &lt;STRONG&gt;&lt;FONT color="#000080"&gt;SK&lt;/FONT&gt;&lt;/STRONG&gt;(x=RCBD_IN_R, y=RCBD_IN_R$VAR1, model=&lt;FONT color="#FF00FF"&gt;"y~GEN+REP"&lt;/FONT&gt;, which="GEN", sig.level=0.05)&lt;BR /&gt;&lt;FONT color="#008000"&gt;#summary(VAR1a)&lt;/FONT&gt;&lt;BR /&gt;VAR2a &amp;lt;- &lt;STRONG&gt;&lt;FONT color="#000080"&gt;SK&lt;/FONT&gt;&lt;/STRONG&gt;(x=RCBD_IN_R, y=RCBD_IN_R$VAR2, model=&lt;FONT color="#FF00FF"&gt;"y~GEN+REP"&lt;/FONT&gt;, which="GEN", sig.level=0.05)&lt;BR /&gt;&lt;FONT color="#008000"&gt;#summary(VAR2a)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Summary&lt;/FONT&gt;&lt;BR /&gt;VAR1b&amp;lt;-(summary(VAR1a))&lt;BR /&gt;VAR2b&amp;lt;-(summary(VAR2a))&lt;BR /&gt;&lt;FONT color="#008000"&gt;#_____________________________&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#RENAMING MEANS TO THE NAME OF VARIABLE EVALUATED&lt;/FONT&gt;&lt;BR /&gt;names(VAR1b)[names(VAR1b)=="Means"] &amp;lt;- "VAR1"&lt;BR /&gt;names(VAR2b)[names(VAR2b)=="Means"] &amp;lt;- "VAR2"&lt;BR /&gt;&lt;FONT color="#008000"&gt;#RENAMING SK(5%)TO SK PLUS NAME OF VARIABLE EVALUATED&lt;/FONT&gt;&lt;BR /&gt;names(VAR1b)[names(VAR1b)=="SK(5%)"] &amp;lt;- "SK_VAR1"&lt;BR /&gt;names(VAR2b)[names(VAR2b)=="SK(5%)"] &amp;lt;- "SK_VAR2"&lt;BR /&gt;&lt;FONT color="#008000"&gt;#MERGING SCOTT-KNOTT RESULTS IN A SINGLE DATASET&lt;/FONT&gt;&lt;BR /&gt;SK &amp;lt;-Reduce(function(x, y) merge(x, y, all=TRUE),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR1b,&amp;nbsp; #VAR1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR2b&amp;nbsp; #VAR2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ))&lt;BR /&gt;&lt;FONT color="#008000"&gt;#RENAMING NAME OF VAR "Levels" TO GEN [TREATMENTS]&lt;/FONT&gt;&lt;BR /&gt;names(SK)[names(SK)=="Levels"] &amp;lt;- "GEN"&lt;BR /&gt;&lt;FONT color="#008000"&gt;#_______End of R code_________________&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Exporting R results to your hard drive and SAS Environment;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#"Your file: 'Scott_Knott_output.xlsx' is in C:\ of your HD";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#Exporting results from R to SAS;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#_______Begin of R code_________________&lt;/FONT&gt;&lt;BR /&gt;setwd(&lt;FONT color="#FF00FF"&gt;"C:/"&lt;/FONT&gt;) &lt;FONT color="#008000"&gt;#Assigning path to output file&lt;/FONT&gt;&lt;BR /&gt;getwd()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT color="#008000"&gt; #Checking out if your file was exported sucessfully&lt;/FONT&gt;&lt;BR /&gt;write.xlsx(SK, &lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;"Scott_Knott_output.xlsx"&lt;/FONT&gt;&lt;/STRONG&gt;)&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000080"&gt;View&lt;/FONT&gt;&lt;/STRONG&gt;(SK)&lt;FONT color="#008000"&gt; #Once you View your table in RStudio you can copy and paste your results in excel.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;#_______End of R code_________________&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="WordSection1"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/229701#M12102</guid>
      <dc:creator>invisibleman</dc:creator>
      <dc:date>2015-10-13T13:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scott-Knott Multiple Comparison ... Is there any procedure in SAS??</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/397193#M20711</link>
      <description>&lt;P&gt;Jonatan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find the SAS macro for the adjusted Scott-Knott in the link from this paper&lt;/P&gt;&lt;P&gt;&lt;A href="http://ref.scielo.org/n4c75n" target="_blank"&gt;http://ref.scielo.org/n4c75n&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About the widespread use of it in Brazil, you should understand that the test by itself was proposed as an alternative to avoid ambiguity (which should not be understood as issue in comparison tests since "comparison tests were created to detect differences" - Tukey).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Scott-Knott test was developed by two economics professors from Auckland and London and was very criticized by american researchers in the very beginning because it does not control the experiment-wise Type I Error as the MCP if there are more than a cluster of means (which means it does control it only if there is no true difference among them or if all the means are truly different). Also be aware that this statment is validy if you do evaluated the Scott-Knott test in the same manner as the MCP are, which is not the best approach since they different goals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is an alternative for a post ANOVA analysis, but it has a different concept than Tukey, Duncan, SNK, Dunett and my others.&lt;/P&gt;&lt;P&gt;Despite the lack of the control of the experiment-wise error, the Scott-Knott test has a much higher power than those listed above, since the most of MCPs lowers a lot the "real" Type I Error to guarantee it do not surpass the nominal level, therefore they have high Type II Error, which can be understood as low Power.&lt;/P&gt;&lt;P&gt;Thus, in a scenario were the Type I Error is not a big concern, the Scott-Knott (1974) it is a good option (i.e. preliminary experiments or studies where it is expected to have many treatments in the same cluster and it is not interesting to carry all of them to the next research stage if they show No Significant Difference. It is good fit for researches areas where there are a high number of treatments with such small variation among those and it is possible to perform a following validation, these scenarios are indeed rare if you take in account the multiple areas where statistics play a big role. I notice a lot of use of this test in agronomic research, but almost never in the other areas, so if you take in account that Brazil is country that play big almost only in agriculture it is possible to understand the wide adoption of the test in Brazil.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scott-Knott-Multiple-Comparison-Is-there-any-procedure-in-SAS/m-p/397193#M20711</guid>
      <dc:creator>tconrado</dc:creator>
      <dc:date>2017-09-19T16:55:54Z</dc:date>
    </item>
  </channel>
</rss>

