By default, the Chi-Square Test procedure builds frequencies and calculates an expected value based on all valid values of the test variable. However, you might want to restrict the range of the test to a contiguous subset of the available values. As the next example shows, the procedure easily allows for this.

The hospital requests a follow-up analysis: Can staff be scheduled assuming that patients discharged on weekdays only (Monday through Friday) leave at a constant daily rate?