jinseob2kim/jstable

Report bug in function: lmer.display()

Nesln opened this issue · 1 comments

Nesln commented

After fitting the glmer model, I tried to summarize it with lmer.display(), however, a error occured:
Error in terms.formula(tmp, simplify = TRUE) :
invalid model formula in ExtractVars

Then I tried to find out where the error occurred using the sample code you provided in the github.io webpage

library(geepack) ## for dietox data
data(dietox)
dietox$Cu <- as.factor(dietox$Cu)
dietox$ddn <- as.numeric(rnorm(nrow(dietox)) > 0)
l2 <- glmer(ddn ~ Weight + Time + (1|Pig), data= dietox, family= "binomial")
lmer.display(l2)

it still occur:

l2 <- glmer(ddn ~ Weight + Time + (1|Pig), data= dietox, family= "binomial")
boundary (singular) fit: see help('isSingular')
lmer.display(l2)
Error in terms.formula(tmp, simplify = TRUE) :
invalid model formula in ExtractVars`

Thank you for building this function and it would be grateful if you could solve this out soon.

Nesln commented

I don't quite understand the mechanism of the error occurred, but after I restarted the r session, everything just goes fine

Thank you again :)