The first call to ranef works, the second returns an error
Error in UseMethod("ranef") :
no applicable method for 'ranef' applied to an object of class "c('lmerMod', 'merMod')"
The reason for the error is that generic ranef function, rather than being imported to the ordinal package from nlme, is defined inside the package (at line 29 of clmm.ranef.R). Can you please delete these lines and instead add to NAMESPACEimportFrom(nlme, ranef) (which is currently actually at lines 42-43 of the file, but it has been commented out).
The first call to
ranef
works, the second returns an errorThe reason for the error is that generic
ranef
function, rather than being imported to theordinal
package fromnlme
, is defined inside the package (at line 29 ofclmm.ranef.R
). Can you please delete these lines and instead add toNAMESPACE
importFrom(nlme, ranef)
(which is currently actually at lines 42-43 of the file, but it has been commented out).