请问有人知道sjp.Int是否适用于鲁棒回归?基本绘图可以,但置信区间不起作用。 错误=
Error in seq.default(from = best$lmin, to = best$lmax, by = best$lstep) :
'from' must be of length 1
In addition: Warning messages:
1: In min(intdf$conf.low, na.rm = T) :
no non-missing arguments to min; returning Inf
2: In max(intdf$conf.high, na.rm = T) :
no non-missing arguments to max; returning -Inf
我使用的命令是:
fname = rlm(Y ~ X1+X2+X3+X4*X5, data=mydata)
sjp.int(fname, type="eff", show.ci=TRUE)
对于type="cond",置信区间确实有效。
predict.rlm()
和effects::allEffects()
的结果,你提到的effects包返回的标准误差与预测函数确实略有不同。预测函数的置信区间不是来自effects包的标准误差的1.96倍,而是约为1.79倍...(因此,rlm估计的标准误差应该与effects包返回的略有不同)。 - Daniel