<?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: How do I create control limits that do not vary with the sample size? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-create-control-limits-that-do-not-vary-with-the-sample/m-p/125893#M6594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found my own answer I think.&amp;nbsp; I am using the LIMITN=n option, which I will set for my average sample size, unless someone has a better idea! feedback appreciated, Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2012 17:23:36 GMT</pubDate>
    <dc:creator>Kimberley</dc:creator>
    <dc:date>2012-05-24T17:23:36Z</dc:date>
    <item>
      <title>How do I create control limits that do not vary with the sample size?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-create-control-limits-that-do-not-vary-with-the-sample/m-p/125892#M6593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating control charts using Proc Shewart. I created a data set containing limits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When these limits are being applied to my data, they vary because the sample size varies.&amp;nbsp; I would like my limits to not vary according to sample size, just to take the Process mean and the standard deviation specified in the limits table to create the limits. Stability in the limits will make it easier for our operators to interpret. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there should be an easy way to do this, but I don't know what it is!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 15:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-create-control-limits-that-do-not-vary-with-the-sample/m-p/125892#M6593</guid>
      <dc:creator>Kimberley</dc:creator>
      <dc:date>2012-05-24T15:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create control limits that do not vary with the sample size?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-create-control-limits-that-do-not-vary-with-the-sample/m-p/125893#M6594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found my own answer I think.&amp;nbsp; I am using the LIMITN=n option, which I will set for my average sample size, unless someone has a better idea! feedback appreciated, Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 17:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-create-control-limits-that-do-not-vary-with-the-sample/m-p/125893#M6594</guid>
      <dc:creator>Kimberley</dc:creator>
      <dc:date>2012-05-24T17:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create control limits that do not vary with the sample size?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-create-control-limits-that-do-not-vary-with-the-sample/m-p/125894#M6595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kimberley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post a code snippet of what you're trying to do?&amp;nbsp; There are many different charts which can be produced by proc shewhart, and they have different default behavior for control limits based upon the underlying statistical assumptions.&amp;nbsp; I see the "xsxhart" tag- is that really the "xschart" statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SAS/QC user's guide, &lt;A href="http://support.sas.com/documentation/cdl/en/qcug/63964/HTML/default/viewer.htm#qcug_shewhart_a0000003854.htm"&gt;there are a couple examples in the "xschart" sectio&lt;/A&gt;n showing control charts with fixed limits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13379588502174076" jivemacro_uid="_13379588502174076"&gt;
&lt;P&gt;title 'Mean and Standard Deviation Charts for Power Output';&lt;/P&gt;
&lt;P&gt;proc shewhart data=Turbine;&lt;/P&gt;
&lt;P&gt;xschart KWatts*Day ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to set your own limits, such as when you have limits created on an initial set of data, and wish to apply them to a new set of data, the the answer is to use the "LIMITS=" option to the PROC SHEWHART statement&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/qcug/63964/HTML/default/viewer.htm#qcug_shewhart_a0000003570.htm"&gt;http://support.sas.com/documentation/cdl/en/qcug/63964/HTML/default/viewer.htm#qcug_shewhart_a0000003570.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This option will read in a dataset produced by a previous run of the procedure.&amp;nbsp; Here is an example for a p-chart:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/qcug/63964/HTML/default/viewer.htm#qcug_shewhart_a0000003737.htm"&gt;http://support.sas.com/documentation/cdl/en/qcug/63964/HTML/default/viewer.htm#qcug_shewhart_a0000003737.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, generate the dataset with the limits you want using the OUTLIMITS dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example uses the pchart statement, but it should be almost identical for the xschart statement if that's what you're using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13379588199219673" jivemacro_uid="_13379588199219673"&gt;
&lt;P&gt;title 'Proportion of Circuit Failures';&lt;/P&gt;
&lt;P&gt;proc shewhart data=CircOne;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; pchart Fail*Batch / subgroupn = 500&lt;/P&gt;
&lt;P&gt;&amp;nbsp; outindex = 'Trial Limits'&lt;/P&gt;
&lt;P&gt;&amp;nbsp; outlimits = Faillim1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; odstitle = title;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then read that data set, "Faillim1", in when running PROC SHEWHART the next time.&amp;nbsp; (see the documentation for a more complicated version)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13379588329933566" jivemacro_uid="_13379588329933566"&gt;
&lt;P&gt;title 'p Chart with Revised Limits for Failed Circuits';&lt;/P&gt;
&lt;P&gt;proc shewhart data=CircOne limits=Faillims1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; pchart Fail*Batch / subgroupn = 500&lt;/P&gt;
&lt;P&gt;&amp;nbsp; readindex = 'Revised Limits'&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vref = 0.0156 0.032226&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vreflabels = ('Trial P' 'Trial UCL')&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vreflabpos = 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp; odstitle = title&lt;/P&gt;
&lt;P&gt;&amp;nbsp; nolegend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; label Fail = 'Fraction Failed'&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Batch = 'Batch Index';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ods graphics off;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps, but it sounds like you might have figured it out.&amp;nbsp; Please post any code if you have any specific issues you'd like help with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 15:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-create-control-limits-that-do-not-vary-with-the-sample/m-p/125894#M6595</guid>
      <dc:creator>blchri</dc:creator>
      <dc:date>2012-05-25T15:16:47Z</dc:date>
    </item>
  </channel>
</rss>

