psycho.R
psycho.R copied to clipboard
analyze() not working
Whenever I call the analyze()
funtion on a lmerTest
object I get:
Error in UseMethod("analyze") : no applicable method for 'analyze' applied to an object of class "c('merModLmerTest', 'lmerMod', 'merMod')"
id = 15
obs = 10
data<- tibble::tibble(id = rep(1:id, obs),
obs = rep(1:obs, 15),
y = rnorm(150),
x = rnorm(150))
fit<-lmer(y ~ x + (1|id), data=data)
analyze(fit)
Converting data
to data.frame
does not help.
@b1azk0 This is likely due to the update of lmerTest and lme4, try updating psycho
:
install.packages("devtools")
library("devtools")
install_github("neuropsychology/psycho.R")
library("psycho")
Let me know how it went
Unfortunatly it stops at:
values html ** building package indices ** installing vignettes ** testing if installed package can be loaded *** arch - i386 Error: package or namespace load failed for 'psycho' in library.dynam(lib, package, package.lib): DLL 'statnet.common' not found: maybe not installed for this architecture?
After manually reinstalling statnet.common
it works again.
Thanks :)
I wanted to share that I had the same issue and could successfully get it to run after going trough both recommendations from @DominiqueMakowski and @b1azk0
Coming to the package late in years, but I'm getting the peculiar error that Error: 'analyze' is not an exported object from 'namespace:psycho'
. The function is still on the GitHub main page and is essential to the package yet doesn't seem to exist, even in the help help(package = "psycho")
Please check this post https://github.com/neuropsychology/psycho.R/issues/115#issuecomment-582221477
tldr; analyze()
has now been improved and moved to the report package :)
Sorry for the trouble!
Thank you :-) guess I hadn't looked around long enough for the answer!