Data editing > Data correction
 
Data correction
It is always possible to deal with data which has been incorrectly coded and/or entered. If the errors themselves cannot be corrected because correct codes cannot be determined, the incorrect data can be collected under some miscellaneous heading in the tabulations.
However, a cleaner data set can be obtained by correcting or removing invalid data whenever possible.
There are four ways to correct data:
Correct the data in the original data file.
Correct the data in the C array interactively.
Replace the incorrect codes with specific codes using edit forcing statements.
Write a file of corrections to be merged with the original data when it is read in by a Quantum program.
Changing the contents of the original data file is not a function of Quantum: you must use the data editing program, ded, for this. If you do need to edit the original data file, always take a copy of it first in case your editing does not have the desired effect.
See
Forced editing (forced cleaning)
On-line data correction
On-line editing commands
Creating clean and dirty data files
Correcting data from a corrections file
Missing values in numeric fields