<?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: Proc shewhart-P chart in SAS in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/243154#M8823</link>
    <description>&lt;P&gt;According to the&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/qcug/68161/HTML/default/viewer.htm#qcug_shewhart_sect466.htm#qcug.shewhart.opt_turnhlabels" target="_blank"&gt;documentation&lt;/A&gt;, the TURNHLABELS option (valid for traditional graphics)&amp;nbsp;"&lt;SPAN&gt;turns the major tick mark labels for the horizontal (subgroup) axis so that they are strung out vertically." Perhaps another way to save space would be to omit the (redundant) year from the labels and write it into the axis label or the title or to specify the year only at the January tick mark.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2016 10:50:11 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2016-01-13T10:50:11Z</dc:date>
    <item>
      <title>Proc shewhart-P chart in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/242169#M8786</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to create a control chart(p-chart) &amp;nbsp;for hospital data shown below .&lt;/P&gt;&lt;P&gt;The SAS system asks me to give the variable for subgroupn= option in Proc shewhart and i have no clue at all..any help is highly apreciated.&lt;/P&gt;&lt;P&gt;i have a total of 42 records in my dataset (22 records for Hospital 1 and 22 records for Hospital 2). and want a control chart for each hospital seperately....and the code used is shown below....&lt;/P&gt;&lt;P&gt;What&amp;nbsp;should i have as&amp;nbsp;the subgroupn option????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" size="2" face="Courier New"&gt;&lt;FONT color="#800080" size="2" face="Courier New"&gt;&lt;FONT color="#800080" size="2" face="Courier New"&gt;proc shewhart data=have;&lt;BR /&gt;pchart cases_per_1000days*month;&lt;BR /&gt;where Hospital=University1';&lt;BR /&gt;label DVT = " DVT per 1000 days"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HOSPITAL&amp;nbsp;&amp;nbsp; YEAR&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTH&amp;nbsp;&amp;nbsp;&amp;nbsp;SERIOUS_ CASES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PATIENT_DAYS&amp;nbsp;&amp;nbsp;&amp;nbsp;CASES_PER_1000days&lt;/P&gt;&lt;P&gt;University1&amp;nbsp;&amp;nbsp; 2014-01&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19&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; 8924&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;&amp;nbsp; 2.129&lt;/P&gt;&lt;P&gt;University1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Feb&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;17&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;&amp;nbsp;7169&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;&amp;nbsp;&amp;nbsp; 2.371&lt;/P&gt;&lt;P&gt;University2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2014-01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Jan&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01&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;1571&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;&amp;nbsp;&amp;nbsp; 0.637&lt;/P&gt;&lt;P&gt;University2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014-02&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;02&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; 1462&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;&amp;nbsp;&amp;nbsp;1.367&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 08:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/242169#M8786</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2016-01-07T08:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc shewhart-P chart in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/242179#M8787</link>
      <description>&lt;P&gt;What&amp;nbsp;&lt;SPAN&gt;CASES_PER_1000days represent and how you calculate it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 11:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/242179#M8787</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-01-07T11:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc shewhart-P chart in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/242188#M8788</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31685"&gt;@robertrao﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me first say that I'm not familiar with control charts and I have not licensed SAS/QC (which is required for PROC SHEWHART). But I've looked into the&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/qcug/68161/HTML/default/viewer.htm#qcug_shewhart_toc.htm" target="_blank"&gt;documentation of the SHEWHART procedure&lt;/A&gt;&amp;nbsp;and some documents dealing with control charts in health-related contexts I found on the internet. Based on this information (and my biostatistical experience), I think that&amp;nbsp;a &lt;STRONG&gt;&lt;EM&gt;u&lt;/EM&gt; chart&lt;/STRONG&gt; would be more appropriate for your data than a &lt;EM&gt;p&lt;/EM&gt; chart. See, for example, Table 1 in&amp;nbsp;&lt;A href="http://www.dtic.mil/cgi-bin/GetTRDoc?AD=ADA613300" target="_blank"&gt;this document&lt;/A&gt;. Or do you have good reasons to assume that the number of "serious cases" within a given number of patient days follows&amp;nbsp;a binomial distribution rather than a&amp;nbsp;Poisson distribution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming that a &lt;EM&gt;u&lt;/EM&gt; chart is more appropriate, the statement &lt;FONT face="courier new,courier"&gt;uchart serious_cases*month / subgroupn=patient_days; &lt;FONT face="arial,helvetica,sans-serif"&gt;should be valid. However, this would measure the rate in cases per patient day. Therefore, I suggest that you create a new variable, say &lt;FONT face="courier new,courier"&gt;th_pat_days=patient_days/1000&lt;FONT face="arial,helvetica,sans-serif"&gt;, in your HAVE dataset and replace &lt;FONT face="courier new,courier"&gt;patient_days&lt;/FONT&gt; by &lt;FONT face="courier new,courier"&gt;th_pat_days&lt;/FONT&gt; in the above UCHART statement. In the actual chart this replacement should only change the unit, not the shape of the graph.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;This would be in line with &lt;A href="http://support.sas.com/documentation/cdl/en/qcug/68161/HTML/default/viewer.htm#qcug_shewhart_sect328.htm" target="_blank"&gt;Example 18.33&lt;/A&gt;&amp;nbsp;in the documentation. There they also have varying, non-integer denominators (values of the variable specified in the SUBGROUPN= option).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial, helvetica, sans-serif"&gt;&lt;SPAN style="line-height: normal;"&gt;Your variable CASES_PER_1000days would not be used in the UCHART statement. (Btw, 1.367 should read 1.368 in your data, because 2/1.462=1.3679...) SAS would&amp;nbsp;compute these rates automatically from &lt;FONT face="courier new,courier"&gt;serious_cases&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;th_pat_days&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial, helvetica, sans-serif"&gt;&lt;SPAN style="line-height: normal;"&gt;(And please add the missing single quote in your WHERE statement.)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 14:16:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/242188#M8788</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-07T14:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc shewhart-P chart in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/242960#M8814</link>
      <description>&lt;P&gt;Thanks for all the inputs. The post from you was very informative and i want to thank you once again.&lt;/P&gt;&lt;P&gt;Lastly, when i get the u-chart i only have 3 sigma Limit marked apart from the UCL and LCL.&lt;/P&gt;&lt;P&gt;Is there a way we can get the code for marking the 2 sigma limit and 1 sigma limit .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/242960#M8814</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2016-01-12T16:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc shewhart-P chart in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/242979#M8817</link>
      <description>&lt;P&gt;Thanks for the like and accepting my solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/qcug/68161/HTML/default/viewer.htm#qcug_shewhart_sect464.htm#qcug.shewhart.opt_sigmas" target="_blank"&gt;documentation&lt;/A&gt;, there are essentially two ways to specify the width of the control limits (like 3&lt;FONT face="symbol"&gt;s&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; either through the SIGMAS= option (of the UCHART statement, I think), which has the default 3, or through a LIMITS= dataset (and there in variable _SIGMAS_) to be specified in the LIMITS= option of the PROC SHEWHART statement (see &lt;A href="http://support.sas.com/documentation/cdl/en/qcug/68161/HTML/default/viewer.htm#qcug_shewhart_sect306.htm" target="_blank"&gt;this example&lt;/A&gt;). But also the TABLE= input dataset seems to contain the variable _SIGMAS_. However, it is not clear to me if any of these methods allows for more than one multiple of &lt;FONT face="symbol"&gt;&lt;SPAN&gt;s&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;at the same time.&amp;nbsp;&lt;A href="http://marc.info/?l=sas-l&amp;amp;m=116624942594160&amp;amp;w=2" target="_blank"&gt;This old discussion&lt;/A&gt;&amp;nbsp;(concerning the XCHART statement, though) suggests that this is perhaps not possible (or was not possible back in 2003). But in any case, as a last resort, it should be possible to create the chart (with somewhat more effort) by either creating an overlay chart where simply two or three charts (each showing only one pair of sigma limits, otherwise being identical) are overlaid or by drawing the desired additional lines using the SAS/GRAPH Annotate facility (if traditional graphics are used) or corresponding features of ODS graphics, respectively.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 17:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/242979#M8817</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-12T17:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc shewhart-P chart in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/243095#M8821</link>
      <description>&lt;P&gt;Hello Freelance,&lt;/P&gt;&lt;P&gt;One other question is that the x-axis had labels which are two crowded.&lt;/P&gt;&lt;P&gt;Is there an option in the u-chart axis options which can make the labels allign vertical or at an angle?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have the labels as follows:&lt;/P&gt;&lt;P&gt;2014-01 2014-02 2014-03 etc etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 23:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/243095#M8821</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2016-01-12T23:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc shewhart-P chart in SAS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/243154#M8823</link>
      <description>&lt;P&gt;According to the&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/qcug/68161/HTML/default/viewer.htm#qcug_shewhart_sect466.htm#qcug.shewhart.opt_turnhlabels" target="_blank"&gt;documentation&lt;/A&gt;, the TURNHLABELS option (valid for traditional graphics)&amp;nbsp;"&lt;SPAN&gt;turns the major tick mark labels for the horizontal (subgroup) axis so that they are strung out vertically." Perhaps another way to save space would be to omit the (redundant) year from the labels and write it into the axis label or the title or to specify the year only at the January tick mark.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 10:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-shewhart-P-chart-in-SAS/m-p/243154#M8823</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-13T10:50:11Z</dc:date>
    </item>
  </channel>
</rss>

