距离(influencePlot图的标签设定问题)"/>
COOK距离(influencePlot图的标签设定问题)
influencePlot图设定标签要注意配合row.name命令设定行名,才能和标签一一对应,否则就仅是对应点图
mydata3<-mydata
mydata3rowname<-round(mydata3$x,3)
row.names(mydata3)<-mydata3rowname
par(mfrow = c(2,3))#画图设置
influencePlot(lm(y1~0+x,data=mydata3),main="linemodel1")
influencePlot(lm(y1~0+log(x+1,base=exp(1)),data=mydata3),main="lnmodel1")
influencePlot(lm(y1~0+exp(x),data=mydata3),main="expmodel1")
influencePlot(lm(y2~0+x,data=mydata3),main="Linemodel2")
influencePlot(lm(y2~0+log(x+1,base=exp(1)),data=mydata3),main="lnmodel2")
influencePlot(lm(y2~0+exp(x),data=mydata3),main="expmodel2")
更多推荐
COOK距离(influencePlot图的标签设定问题)
发布评论