jinseob2kim / jstable

Regression Tables from 'GLM', 'GEE', 'GLMM', 'Cox' and 'survey' Results.
https://jinseob2kim.github.io/jstable/
Apache License 2.0
22 stars 13 forks source link

Report bug in function: lmer.display() #3

Closed Nesln closed 1 year ago

Nesln commented 1 year ago

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 1 year ago

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 :)