Closed hellocita closed 5 years ago
I can repro this issue, with method='glmer'
ebayes = FALSE
.
so this:
zlm(~Stim.Condition,sca=subset(vbetaFA,ncells==1)[1:10,],method="bayesglm", ebayes = TRUE)
works, but this
zlm(~Stim.Condition,sca=subset(vbetaFA,ncells==1)[1:10,],method="glmer", ebayes = FALSE)
gives the observed error.
@amcdavid we could use your input here, the error is in a long stack of object construction.
@hellocita is trying to run a random effects model with lmer, but didn't include any random effects. If a random effect is specified, it works just fine. This model is statistical non-sense but does serve to illustrate the functionality:
zlmVbeta <- zlm(~ Stim.Condition + (1|Well), subset(vbetaFA, ncells==1)[1:10,], method='glmer', ebayes=F, silent=T)
Set method = 'bayesglm'
if there aren't any random effects.
We could try to signal a more intelligible error here. We do some fairly dark magic to the formula to be able to run arbitrary likelihood ratio tests and it's probably not ever going to 100% robust.
I see, Thank you for your kindly answer!
Dear sir/madam, I was using MAST recently for single cell analysis, and had meet an error during use of zlm function, and cannot figure out how to solve it. I am appreciated if you could help to solve it. Here is the code I use, error message, and the sessionInfo during the process:
2.error message Error in parse(text = x, keep.source = FALSE) :