R Under development (unstable) (2023-12-02 r85657 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # check that ranef and VarCorr work even after loading ordinal: > library(lme4) Loading required package: Matrix > fm1 <- lmer(Reaction ~ Days + (Days | Subject), data=sleepstudy) > ranef(fm1) $Subject (Intercept) Days 308 2.2585509 9.1989758 309 -40.3987381 -8.6196806 310 -38.9604090 -5.4488565 330 23.6906196 -4.8143503 331 22.2603126 -3.0699116 332 9.0395679 -0.2721770 333 16.8405086 -0.2236361 334 -7.2326151 1.0745816 335 -0.3336684 -10.7521652 337 34.8904868 8.6282652 349 -25.2102286 1.1734322 350 -13.0700342 6.6142178 351 4.5778642 -3.0152621 352 20.8636782 3.5360011 369 3.2754656 0.8722149 370 -25.6129993 4.8224850 371 0.8070461 -0.9881562 372 12.3145921 1.2840221 with conditional variances for "Subject" > VarCorr(fm1) Groups Name Std.Dev. Corr Subject (Intercept) 24.7407 Days 5.9221 0.066 Residual 25.5918 > library(ordinal) > ranef(fm1) $Subject (Intercept) Days 308 2.2585509 9.1989758 309 -40.3987381 -8.6196806 310 -38.9604090 -5.4488565 330 23.6906196 -4.8143503 331 22.2603126 -3.0699116 332 9.0395679 -0.2721770 333 16.8405086 -0.2236361 334 -7.2326151 1.0745816 335 -0.3336684 -10.7521652 337 34.8904868 8.6282652 349 -25.2102286 1.1734322 350 -13.0700342 6.6142178 351 4.5778642 -3.0152621 352 20.8636782 3.5360011 369 3.2754656 0.8722149 370 -25.6129993 4.8224850 371 0.8070461 -0.9881562 372 12.3145921 1.2840221 with conditional variances for "Subject" > VarCorr(fm1) Groups Name Std.Dev. Corr Subject (Intercept) 24.7407 Days 5.9221 0.066 Residual 25.5918 > > proc.time() user system elapsed 1.95 0.37 2.31