<?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 Does Anyone Know How To Produce Semi Interquartile Range (SIQR) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Does-Anyone-Know-How-To-Produce-Semi-Interquartile-Range-SIQR/m-p/575639#M162879</link>
    <description>&lt;P&gt;Greeting SAS Base Master Sifu,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am trying to work Semi Interquartile Range (&lt;STRONG&gt;SIQR&lt;/STRONG&gt;) for survey data report.&lt;/P&gt;&lt;P&gt;At present, we produce SIQR report in old Excel way (&lt;EM&gt;attached&lt;/EM&gt;) which contains SIQR formula - but doing way will be labor intensive &amp;amp; prone to error due to size of the survey data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to limited SAS knowledge (&lt;EM&gt;i'm newbie&lt;/EM&gt;), any insight or back-bone scripts will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 04:58:05 GMT</pubDate>
    <dc:creator>asp778ACU</dc:creator>
    <dc:date>2019-07-23T04:58:05Z</dc:date>
    <item>
      <title>Does Anyone Know How To Produce Semi Interquartile Range (SIQR)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-Anyone-Know-How-To-Produce-Semi-Interquartile-Range-SIQR/m-p/575639#M162879</link>
      <description>&lt;P&gt;Greeting SAS Base Master Sifu,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am trying to work Semi Interquartile Range (&lt;STRONG&gt;SIQR&lt;/STRONG&gt;) for survey data report.&lt;/P&gt;&lt;P&gt;At present, we produce SIQR report in old Excel way (&lt;EM&gt;attached&lt;/EM&gt;) which contains SIQR formula - but doing way will be labor intensive &amp;amp; prone to error due to size of the survey data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to limited SAS knowledge (&lt;EM&gt;i'm newbie&lt;/EM&gt;), any insight or back-bone scripts will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 04:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-Anyone-Know-How-To-Produce-Semi-Interquartile-Range-SIQR/m-p/575639#M162879</guid>
      <dc:creator>asp778ACU</dc:creator>
      <dc:date>2019-07-23T04:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Does Anyone Know How To Produce Semi Interquartile Range (SIQR)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-Anyone-Know-How-To-Produce-Semi-Interquartile-Range-SIQR/m-p/575741#M162920</link>
      <description>&lt;P&gt;Semi Interquartile Range is&amp;nbsp; (Q3 - Q1) * 0.5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use Proc Means/Summary to get Q1 and Q3 for numeric variables and save the output to a Data set. Use this new data set to compute the required statistic.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods output summary=work.q1q3;
proc means data = sashelp.class(keep=age) Q1 Q3 ;
   var Age;
    run; 
ods output close;

data want;
   set work.q1q3;
   IQR = (Age_Q3 - Age_Q1) / 2;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have an array of numeric values you can use IQR() function as:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
iqr=iqr(2, 4, 1, 3, 999999);
put iqr=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 11:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-Anyone-Know-How-To-Produce-Semi-Interquartile-Range-SIQR/m-p/575741#M162920</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2019-07-23T11:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Does Anyone Know How To Produce Semi Interquartile Range (SIQR)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-Anyone-Know-How-To-Produce-Semi-Interquartile-Range-SIQR/m-p/575753#M162923</link>
      <description>&lt;P&gt;QRANGE option is for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data = sashelp.class(keep=age) Q1 Q3 qrange ;
   var Age;
    run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jul 2019 11:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-Anyone-Know-How-To-Produce-Semi-Interquartile-Range-SIQR/m-p/575753#M162923</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-07-23T11:53:33Z</dc:date>
    </item>
  </channel>
</rss>

