2019-01-19
阅读量:
683
R代码错误
问:
states <- as.data.frame(state.x77[,c("Murder","Population","Illiteracy","Income","Frost")])
> fit <- lm (Murder ~ Population + Illiteracy + Income + Frost,data = states)
> avPlots(fit,ask=FALSE,onepage=TRUE,id.method="identify")
上段代码为什么得不到变量添加图?该怎么修改?
答:
要加载car包
library(car)







评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论