set MDR for the derived variable.