Miscellaneous notes

R issues

  • We’ve noticed a few issues with code that previously ran now producing errors. We think that the problem may be that a couple of common functions, including select and summarise, from the package dplyr, might be masked by other packages. The problem can usually be fixed by replacing, e.g., select, with dplyr::select. We’ve fixed these problems when we see them, but might not have got them all.

  • A few examples use hier.part, which is no longer available through CRAN (since March 2023). You’ll be fine if you have hier.part installed already. A few examples use hier.part, by Ralph Mac Nally and Chris Walsh. Hier.part can also be installed from Github, though there may be issues with M1/M2 Macs. The quick way from Github is using devtools: devtools::install_github(“cjbwalsh/hier.part”). An alternative is to use the package glmm.hp

  • The package relaimpo exists in two versions, a US and an international version. They differ in the availability of the pmvd statistic, which requires the non-US version. It can be obtained from the author’s website and installed manually - copy into relevant R library folder. Author web site is http://prof.beuth-hochschule.de/groemping/software/relaimpo/
    Note.
    If you do a standard package update, the US version will overwrite the non-US one, and you’ll need to do a manual reinstall if you want pmvd