Example: Winsorized Binning

In this example, the task provides the basic Winsorized statistical information for the input data.
To create this example:
  1. To create the Work.Ex12 data set, enter this code into a Program tab:
    data ex12;
       length id 8;
       do id=1 to 10000;
          x1 = ranuni(101);
          x2 = 10*ranuni(201);
          x3 = 100*ranuni(301);
          output;
       end;
    run;
    Click Submit SAS Code Icon
  2. In the Tasks section, expand the High-Performance Statistics folder, and then double-click Bin Continuous Data. The user interface for the Bin Continuous Data task opens.
  3. On the Data tab, select the WORK.EX12 data set.
    Tip
    If the data set is not available from the drop-down list, click Select a table icon. In the Choose a Table window, expand the library that contains the data set that you want to use. Select the data set for the example and click OK. The selected data set should now appear in the drop-down list.
  4. To the Variables to bin role, assign the x1 and x2 columns.
  5. On the Options tab, set these options:
    • In the Number of bins box, enter 10.
    • From the Method drop-down list, select Winsorized binning.
  6. To run the task, click Submit SAS Code Icon.
Here is a subset of the results:
Performance Information, Binning Information, and Mapping