Fix a typo bug (margins_mlogregr -> robust_variance_mlgoregr) and refactor parameter validation