小编Jac*_*dom的帖子

当使用lm而不是biglm时,扫视/ Dplyr错误与glance()

我正在使用dplyr/broom包对多个传感器进行线性回归.当我在do语句中使用lm()时,来自扫帚的glance()函数将无法工作,但如果我使用biglm()则会这样.这不会是一个问题,但我希望r ^ 2,F-Statistic和p-val对传统的lm()来说非常漂亮.

我已经在其他地方寻找过,并且找不到与此错误类似的情况:

Error in data.frame(r.squared = r.squared, adj.r.squared = adj.r.squared,  : 
 object 'fstatistic' not found
Run Code Online (Sandbox Code Playgroud)

可能的预感:

?Anova 
"The comparison between two or more models will only be valid if they are 
fitted to the same dataset. This may be a problem if there are missing
values and R's default of na.action = na.omit is used."
Run Code Online (Sandbox Code Playgroud)

这是代码:

library(tidyr)
library(broom)
library(biglm) # if not install.packages("biglm")
library(dplyr)
regressionBig <- tidied_rm_outliers %>%
group_by(sensor_name, Lot.Tool, Lot.Module, Recipe, Step, Stage, MEAS_TYPE) %>%
do(fit = …
Run Code Online (Sandbox Code Playgroud)

r dplyr

9
推荐指数
1
解决办法
866
查看次数

标签 统计

dplyr ×1

r ×1