Data preparation and programs

How large data sets are made ready in a statistical package.

1What it covers

How large data sets are made ready in a statistical package. The topic covers reading data, defining variables, treating missing and extreme values, splitting samples for development and testing, writing programs rather than clicking through menus, and the log that records every step. It starts with raw data and ends with a model-ready file and the program that produced it.

2Why it matters

A program can be rerun and a series of menu choices cannot. Sample splits made before modelling protect against overfitting. A log of the steps is the audit trail of the data.

3The skill it belongs to

4Roles that use it

Updated 5 Nov 2026