Adjusting for measurement error