<?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: Fİltering a specific value from the output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/453099#M114440</link>
    <description>&lt;P&gt;Read my post, select the component output parts you want, then merge or set them together to form a final dataset.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 08:26:51 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-04-11T08:26:51Z</dc:date>
    <item>
      <title>Fİltering a specific value from the output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/452480#M114198</link>
      <description>&lt;P&gt;Dear friends, I am&amp;nbsp;a beginner user at SAS.&amp;nbsp; I am comparing 3 groups scores with using &lt;SPAN&gt;npar1way MEDIAN procedure on simulation data.&amp;nbsp; I want to compute a type I error rate on this data set according to MEDIAN test and just want to see this knowledge on the screen without a MEDIAN test output.&amp;nbsp; From my simulation study lets say my code is like below..this a simple code and returns me an output of MEDIAN procedure 50 times(repetition number... just arbitrarily) . I just want to filter p-values obtained form&amp;nbsp;each comparison (totaly&amp;nbsp;50 p-values) and to compute a type I error rate base on these p-values&amp;nbsp;when comparing to alpha=0.05.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for your valuable time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alp&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="gmail_default"&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc npar1way MEDIAN data=Simulation;
by SampleID;      
class group; 
      ods output MEDIAN=OutMEDIAN;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Apr 2018 12:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/452480#M114198</guid>
      <dc:creator>alpdadalman</dc:creator>
      <dc:date>2018-04-09T12:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fİltering a specific value from the output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/452481#M114199</link>
      <description>&lt;P&gt;You can use ods output to select parts of the outputs created:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;ods trace on;&lt;BR /&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;npar1way&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;MEDIAN&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;Simulation&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; SampleID&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;      
&lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; 
      &lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; output &lt;SPAN class="token function"&gt;MEDIAN&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;OutMEDIAN&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;ods trace off;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you run that with the trace on, in the output window you will see a block for each component created by the procedure, there tends to be a fair few, which you can select with some options in the procedure.&amp;nbsp; If you only want to see parts of the output, you can simply specify this with (and depends what the part is called):&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;ods output &amp;lt;modelpart&amp;gt; = &amp;lt;stored dataset&amp;gt;;&lt;BR /&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;npar1way&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;MEDIAN&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;Simulation&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The &amp;lt;modelpart&amp;gt; you get from the output window output and is determined by what you want to see, the &amp;lt;stored dataset&amp;gt; is where you want to store the output.&amp;nbsp; You can then proc print the stored dataset to see it in the output window.&lt;/P&gt;
&lt;P&gt;Here is the SAS help on this topic:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p1fpt3uuow90o3n155hs7bp1mo7f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p1fpt3uuow90o3n155hs7bp1mo7f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 12:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/452481#M114199</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-09T12:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fİltering a specific value from the output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/452674#M114266</link>
      <description>Thanks for your response..hope to overcome this problem&lt;BR /&gt;&lt;BR /&gt;best regards</description>
      <pubDate>Mon, 09 Apr 2018 21:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/452674#M114266</guid>
      <dc:creator>alpdadalman</dc:creator>
      <dc:date>2018-04-09T21:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fİltering a specific value from the output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/453094#M114438</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have the same mistake.&amp;nbsp;I want to make a table that gives computed type I error rate from the comparison repeat&amp;nbsp; at&amp;nbsp;50 times. From the Van der Waerden test p values should be drawn and the type 1 error calculated.How can I get output as a single table.&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;%mend;&lt;/P&gt;&lt;P&gt;%macro simu (r=, n1=, n2=, n3=, mu1=, mu2=, mu3=, sigma1=, sigma2=, sigma3=,&lt;BR /&gt;times=);&lt;BR /&gt;data Simulation(drop=i);&lt;BR /&gt;do SampleID = 1 to &amp;amp;Times;&lt;BR /&gt;do i = 1 to &amp;amp;n1;&lt;BR /&gt;group=1; y=rand("normal",&amp;amp;mu1,&amp;amp;sigma1);/* Group 1: x ~ N(mu1,sigma1^)&lt;BR /&gt;*/&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;do i = 1 to &amp;amp;n2;&lt;BR /&gt;group=2; y=rand("normal",&amp;amp;mu2,&amp;amp;sigma2); /* Group 2: x ~&lt;BR /&gt;N(mu2,sigma2^) */&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;do i = 1 to &amp;amp;n3;&lt;BR /&gt;group=3; y=rand("normal",&amp;amp;mu3,&amp;amp;sigma3); /* Group 3: x ~&lt;BR /&gt;N(mu3,sigma2^) */&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc npar1way VW data=Simulation;&lt;BR /&gt;by SampleID;&lt;BR /&gt;class group;&lt;BR /&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;%simu (n1=5, n2=5, n3=5, mu1=10, mu2=10, mu3=10, sigma1=1, sigma2=1, sigma3=1,&lt;BR /&gt;times=50);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/453094#M114438</guid>
      <dc:creator>A_Gkce</dc:creator>
      <dc:date>2018-04-11T08:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fİltering a specific value from the output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/453099#M114440</link>
      <description>&lt;P&gt;Read my post, select the component output parts you want, then merge or set them together to form a final dataset.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/453099#M114440</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-11T08:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fİltering a specific value from the output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/454204#M114805</link>
      <description>&lt;P&gt;unfortunately can't find a soluation to this problem... thanks again to give your valuable time again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Sat, 14 Apr 2018 20:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/F%C4%B0ltering-a-specific-value-from-the-output/m-p/454204#M114805</guid>
      <dc:creator>alpdadalman</dc:creator>
      <dc:date>2018-04-14T20:49:09Z</dc:date>
    </item>
  </channel>
</rss>

