Statistical process adjustment for quality control