【问题标题】:dplyr::failwith doesn't work with lme4::lmer but does with lmdplyr::failwith 不适用于 lme4::lmer 但适用于 lm
【发布时间】:2016-09-22 16:15:21
【问题描述】:

我有一个工作流程,过去可以使用 dofailwithlmer。现在好像坏了。 我正在做的事情与lm 一起工作,所以我想知道这是一个错误还是我需要改变一些东西。

这行得通:

library(dplyr)
library(lme4)

lmer(   Yield ~ 1|Batch, Dyestuff, REML = FALSE)
lm(   Yield ~ Batch, Dyestuff)

但这不适用于lmer,但适用于lm

lmer_fw    <- failwith(NULL,lmer   ,quiet=TRUE)
lm_fw      <- failwith(NULL,lm   ,  quiet=TRUE)

lmer_fw(Yield ~ 1|Batch, Dyestuff, REML = FALSE)
lm_fw(  Yield ~ Batch, Dyestuff)

nest::possible 具有相同的行为。

有什么想法吗?

> sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] lme4_1.1-12         Matrix_1.2-7.1      dplyr_0.5.0         RevoUtilsMath_8.0.3

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.7      lattice_0.20-34  assertthat_0.1   MASS_7.3-45      grid_3.3.1       R6_2.1.3         nlme_3.1-128     DBI_0.5-1       
 [9] magrittr_1.5     minqa_1.2.4      nloptr_1.0.4     splines_3.3.1    RevoUtils_10.0.1 tools_3.3.1      tibble_1.2  

【问题讨论】:

    标签: r dplyr lme4


    【解决方案1】:

    这与 https://github.com/lme4/lme4/issues/369 相同的问题,我已经在一个分支上修复了它,但现在才开始进入主开发版本。如果您通过devtools::install_github("lme4/lme4") 安装开发版本(1.1-13),它现在应该可以工作了。 (如果您需要二进制版本,请让维护人员知道...)

    【讨论】:

      猜你喜欢
      • 2015-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-31
      • 2020-11-23
      • 2018-09-08
      • 2020-06-26
      相关资源
      最近更新 更多