LDLmacro nanmean version