考虑lm.influencepackage 中的函数stats。我已经写了一个稍微修改过的版本(wlm.influence)。但是当调用它时,我得到:
Error in wlm.influence(fitg) : object 'C_influence' not found
我如何从外部访问它stats?我尝试了明显的解决方案:
.Call("C_influence", mqr, do.coef, e)
.Call(stats:::C_influence, mqr, do.coef, e)
.Call(C_influence, mqr, do.coef, e,PACKAGE="stats")
无济于事