What I had in mind as
post hoc manipulation is something like this:
You run a calibration series and it looks pretty linear so you fit the best straight line and get the calibration equation.
You then run a sample and calculate the result using the calibration equation.
Shock horror

the result is out of spec, not what you/the customer/the regulators want.
THEN you go back and look at the calibration line, and it looks a bit curved so you fit a second order polywhatsitsname and have another shot at the calculation, if that doesn't work you fit a higher order or try a log - log etc. Maybe leaving the line linear but moving it a bit will do the trick, lets try forcing zero. Sighs of relief all round the plant can market the batch, you can publish the paper, the product can be imported/ exported.
What makes this post hoc manipulation (of the result) is that none of it would have happened if the result had been in spec.
This is just as poor as running dozens of different statistical tests on a given set of data until you find one that just happens to come up significant, which was a remarkably common practise in the soft sciences when big number crunching computer programmes first became widely available.
Peter Apps