<?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: Test of Normaldistribution using Kolmogorov-Smirnoff und Shapiro Wilk in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Test-of-Normaldistribution-using-Kolmogorov-Smirnoff-und-Shapiro/m-p/737219#M229811</link>
    <description>&lt;P&gt;I don't know why you get all tests when you use CHECKINDICES&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output testsfornormality=tests;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This outputs all tests of normality to data set TESTS. If you don't want certain ones, then you can delete the ones you don't want.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 10:59:05 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-04-27T10:59:05Z</dc:date>
    <item>
      <title>Test of Normaldistribution using Kolmogorov-Smirnoff und Shapiro Wilk</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-of-Normaldistribution-using-Kolmogorov-Smirnoff-und-Shapiro/m-p/737213#M229807</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;Am tring to use proc capability to do a test of normal distribution. But since this procedure is very new to me, I will be grateful for any help. Here is my code&lt;/P&gt;
&lt;PRE&gt;proc capability data=sashelp.heart normaltest; 
*CHECKINDICES(test=SW );
var agechddiag;
run;&lt;/PRE&gt;
&lt;P&gt;I only wish to output the&amp;nbsp;&lt;SPAN&gt;Shapiro-Wilk (SW), Kolmogorov-Smirnov (KS) test. I taught I could use the&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CHECKINDICES(test=SW|KS) statements as stated in the sas documentation but I still get all tables outputted. I only need the table with the Normaldistribution.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My second question is how can I output this as a sas table. I used output out= myoutdata but I got 0 observations outputted.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 10:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-of-Normaldistribution-using-Kolmogorov-Smirnoff-und-Shapiro/m-p/737213#M229807</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-27T10:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Test of Normaldistribution using Kolmogorov-Smirnoff und Shapiro Wilk</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-of-Normaldistribution-using-Kolmogorov-Smirnoff-und-Shapiro/m-p/737219#M229811</link>
      <description>&lt;P&gt;I don't know why you get all tests when you use CHECKINDICES&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output testsfornormality=tests;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This outputs all tests of normality to data set TESTS. If you don't want certain ones, then you can delete the ones you don't want.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 10:59:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-of-Normaldistribution-using-Kolmogorov-Smirnoff-und-Shapiro/m-p/737219#M229811</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-27T10:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Test of Normaldistribution using Kolmogorov-Smirnoff und Shapiro Wilk</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-of-Normaldistribution-using-Kolmogorov-Smirnoff-und-Shapiro/m-p/737221#M229812</link>
      <description>&lt;P&gt;To test the normality of a variable in the data set, use the NORMALTEST option. You will get a table that contains four statistics, including the KS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, the CHECKINDICES option will output a message such as&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="proctitle"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="c proctitle"&gt;Warning: Normality is rejected for alpha = 0.05 using the Shapiro-Wilk test&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc capability data=sashelp.heart normaltest CHECKINDICES(test=SW );&lt;BR /&gt;&amp;nbsp; &amp;nbsp;var agechddiag;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;specs lsl=40 usl=90;&lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 11:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-of-Normaldistribution-using-Kolmogorov-Smirnoff-und-Shapiro/m-p/737221#M229812</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-04-27T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Test of Normaldistribution using Kolmogorov-Smirnoff und Shapiro Wilk</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-of-Normaldistribution-using-Kolmogorov-Smirnoff-und-Shapiro/m-p/737229#M229815</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; Thankyou. Its working perfectly&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 11:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-of-Normaldistribution-using-Kolmogorov-Smirnoff-und-Shapiro/m-p/737229#M229815</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-27T11:50:09Z</dc:date>
    </item>
  </channel>
</rss>

