Automatically infer variables' measurement level from format and data.