我注意到rlm {MASS}几乎每次都返回不同的系数,即使我使用相同的参数和相同的数据集
我打电话给:
model <- rlm(price ~ ., data = data[,-1], weights = weights,
maxit = 1000000, init = "lts", method = "MM",
psi=psi.huber, acc=0.00001, scale.est="proposal 2", cor = T)
结果:
Intercept) livingArea area discrete dummy
-570.621795 17.169323 2.275109 46.002527 143.812900
(Intercept) livingArea area discrete dummy
-581.893552 16.828956 3.912192 48.253955 180.875439
(Intercept) livingArea area discrete dummy
-303.488284 16.747009 2.928579 26.951809 -14.795652
这是三个最常见的结果。
有人可以解释一下为什么 rlm 会这样吗?
注意:我是统计领域的初学者。