public class TableOneWayEx1 extends Object
Computes a one-way table for a continuous scale variable.
The data for this example is from Hinkley (1977) and Belleman and Hoaglin (1981). The measurement (in inches) are for precipitation in Minneapolis/St. Paul during the month of March for \(30\) consecutive years.
The first test uses the default tally method which may be appropriate when the range of data is unknown. The minimum and maximum data bounds are displayed.
The second test computes the table using known bounds, where the lower bound is 0.5 and the upper bound is 4.5. The eight interior intervals each have width \((4.5 - 0.5)/(10-2) = 0.5\). The 10 intervals are \((-\infty, 0.5], (0.5,1.0],...,(4.0,4.5]\), and \((4.5,\infty]\).
In the third test, 10 class marks, \(0.25, 0.75, 1.25,...,4.75\), are input. This defines the class intervals \((0.0,0.5],(0.5,1.0],...,(4.0,4.5],(4.5,5.0]\). Note that unlike the previous test, the initial and last intervals are the same length as the remaining intervals.
In the fourth test, cutpoints, \(0.5,1.0, 1.5, 2.0, ...,4.5\), are input to define the same 10 intervals as in the second test. Here again, the initial and last intervals are semi- infinite intervals.
Constructor and Description |
---|
TableOneWayEx1() |
public static void main(String[] args)
Copyright © 2020 Rogue Wave Software. All rights reserved.