correctly estimate MEs for lm and glm