A2.4 Coding and Sorting Data

The file CUSTOMER.MTW contains the turnover (in thousands of euro) of a company's customers during the first quarter of the year. This file is organized as follows:
Column Label Content
C1 CUSTOMER Customer number
C2 JANUARY Turnover (in thousand euros) in January
C3 FEBRUARY Turnover (in thousand euros) in February
C5 MARCH Turnover (in thousand euros) in March

We want to codify the variable CUSTOMER (customer number) according to the customers first quarter purchases using the following categories: less than 50 000 €: category 3; between 50 000 and 100 000 €: category 2, and more than 100 000 € category 1. In addition we also want to know the order of each customer in the ranking of quarterly turnover.

First, calculate the turnover during the first quarter of the year.

Calc > Row Statistics

nbapp02uf012.eps

Then, the total turnover values are codified according to the previously specified categories: Data > Code > Numeric to Numeric

nbapp02uf013.eps

The customer numbers for each category can be placed in separate columns, doing: Data > Unstack Columns

nbapp02uf014.eps

To find ...

Get Industrial Statistics with Minitab now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.