Closed ahmjebb1 closed 5 years ago
Hi,
I cannot reproduce with current version of lmerTest
and since you appear to be using an older version, please update, try again and report back here using an lmerTest
-dataset if the problem persist. Also please include the results of sessionInfo()
. Here is what I get:
> data("TVbo", package="lmerTest")
> fm <- lmerTest::lmer(Coloursaturation ~ TVset + Picture + (1|Assessor:TVset) + (1|Assessor),
+ data=TVbo)
> # summary(fm)
> class(fm)
[1] "lmerModLmerTest"
attr(,"package")
[1] "lmerTest"
> fm2 <- update(fm, ~.-TVset)
> class(fm2)
[1] "lmerModLmerTest"
attr(,"package")
[1] "lmerTest"
> # summary(fm2)
> class(as(fm2, "lmerMod"))
[1] "lmerMod"
attr(,"package")
[1] "lme4"
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS 10.14
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] fortunes_1.5-4
loaded via a namespace (and not attached):
[1] zip_1.0.0 Rcpp_0.12.18 cellranger_1.1.0 pillar_1.3.0
[5] compiler_3.5.1 nloptr_1.0.4 plyr_1.8.4 bindr_0.1.1
[9] forcats_0.3.0 tools_3.5.1 lme4_1.1-18-1 tibble_1.4.2
[13] gtable_0.2.0 nlme_3.1-137 lattice_0.20-35 pkgconfig_2.0.2
[17] rlang_0.2.2 openxlsx_4.1.0 Matrix_1.2-14 rstudioapi_0.7
[21] curl_3.2 yaml_2.2.0 haven_1.1.2 rio_0.5.10
[25] bindrcpp_0.2.2 dplyr_0.7.6 hms_0.4.2 lmerTest_3.0-1.9003
[29] grid_3.5.1 tidyselect_0.2.4 data.table_1.11.4 glue_1.3.0
[33] R6_2.2.2 readxl_1.1.0 foreign_0.8-71 carData_3.0-1
[37] minqa_1.2.4 ggplot2_3.0.0 purrr_0.2.5 car_3.0-2
[41] magrittr_1.5 scales_1.0.0 MASS_7.3-50 splines_3.5.1
[45] abind_1.4-5 assertthat_0.2.0 colorspace_1.3-2 numDeriv_2016.8-1
[49] lazyeval_0.2.1 munsell_0.5.0 crayon_1.3.4
You use lmerTest::lmer
which suggests that you may not have called library(lmerTest)
first but that does not make any difference in my example above.
I hope this helps, Rune
PS: using REML=FALSE
and at the same time asking for a Satterthwaite's approximation makes no sense.
Hi
I'm having problems when I try update on an lmer model to remove a fixed effect term. Somehow I am changing the summary output I obtain for the second model (after the update).
Can you help me? :) I included an example of code and output below!
Alexandra`