BookmarkSubscribeRSS Feed
kdp
Calcite | Level 5 kdp
Calcite | Level 5
Hello,

I am using a data set in proc shewhart that has 180 observations for each by group combination. I would like to use the 180 observations to calculate all the statistics and display on the chart. However, I would only like to run the tests on the last 30 days. Basically, for the first 120 observations, it should not display if a test was violated or not - only for the last 30 observations.

Is this possible? I don't mind using multiple proc shewhart procedures to get around this issue.

Thanks,
kdp
3 REPLIES 3
Paige
Quartz | Level 8
I think you have figured out the basic procedure.

First, run PROC SHEWHART on all data, tell it to create no charts, and save the limits to a file.

Second, run PROC SHEWHART on just the data you want to chart, tell it to use the limits calculated above.
kdp
Calcite | Level 5 kdp
Calcite | Level 5
I actually want to chart all 180 observations. I just want it to show test violations in the last 30 observations. There might have been test violations in the first 120 days, but I don't want it to show on the chart.

I think that this might not be possible. 😞
Paige
Quartz | Level 8
I am not aware of a way to do this with PROC SHEWHART commands. It is probably possible using ANNOTATE graphics.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1428 views
  • 0 likes
  • 2 in conversation