Implementing Deming regression