Programming the statistical procedures from SAS

proc shewhart - run tests on subset of input data

Reply
Contributor kdp
Contributor
Posts: 31

proc shewhart - run tests on subset of input data

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
Super Contributor
Posts: 281

Re: proc shewhart - run tests on subset of input data

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.
Contributor kdp
Contributor
Posts: 31

Re: proc shewhart - run tests on subset of input data

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. Smiley Sad
Super Contributor
Posts: 281

Re: proc shewhart - run tests on subset of input data

I am not aware of a way to do this with PROC SHEWHART commands. It is probably possible using ANNOTATE graphics.
Ask a Question
Discussion stats
  • 3 replies
  • 90 views
  • 0 likes
  • 2 in conversation