O'Reilly logo

Industrial Statistics with Minitab by Xavier Tort-Martorell Llabres, Lluis Marco Almagro, Pere Grima Cintas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required