Closed qdread closed 1 year ago
Oh my. I see where this is happening, and tried to do a patch, but it screws up something that comes later. I'll have to look at when and why I made the change that affects you. It's very mysterious, and am not sure how long this will take.
The really discouraging thing is that the code where the error occurs is in the fix for #287, and that the example code there that this supposedly fixes is once again broken! It creates an error in exactly the same line that you are experiencing here.
Well, I feel dumb, but it was a simple fix... Now it works again:
> emmeans(ordinal_fit, ~ Genotype, mode = 'mean.class')
NOTE: A nesting structure was detected in the fitted model:
Strain %in% Genotype
Genotype mean.class SE df asymp.LCL asymp.UCL
g2 4.19 0.297 Inf 3.61 4.77
g1 3.48 0.255 Inf 2.97 3.98
g3 4.11 0.263 Inf 3.59 4.63
Results are averaged over the levels of: Strain
Confidence level used: 0.95
I had coded V[disp, disp]
when I meant V[estble, estble]
. It is very unclear to me why this ever worked with a nested model. I must have been out of synch with things somehow.
Thanks, Russ!
Gonna go ahead and close this. I guess it may reopen when the next gremlin comes along, but hoping that isn't soon.
Hi Russ, about a year ago you helped me out with issue #387 to fix a bug when estimating marginal means with
mode = 'mean.class'
from a model fit withordinal::clmm()
that has nested fixed effects, and random effects. Everything worked great. In the interim, I updated emmeans to the latest release and then had to revisit the code from a year ago. Now, it returns a new error, specificallyError in object@V[disp, disp, drop = FALSE] : (subscript) logical subscript too long
. Note: the ordinal package has not had a new release since last year so I am still using the same version of ordinal that interacted correctly with emmeans when I ran the code a year ago.Here is a modified reproducible example from that previous issue.
The output indicates that the nested structure was correctly detected but the error is new and didn't occur using the release of emmeans that was current in November 2022.
Thanks in advance for your help!