Closed Generalized closed 7 months ago
It means that ODIPain
is the response variable, which has 6 levels. Since for each combination of other factors, the estimates in prob
mode must sum to 1, then the average is always 1/6.
I suggest not averaging over ODIPain
. Similarly, in other modes where cut
is a generated factor, it is fairly meaningless to average over cut
. If you want to filter-out the ordinal categories in your estimates, you should use mode = "latent"
or mode = "mean.class"
.
Ah! Got it, it was simple yet I couldn't get it until you showed me that, thank you.
Regarding the joint_tests()
> update(contrast(lord_em,
+ list("Month 6 : A vs. B" = c(-1, 1, 0, 0, 0, 0),
+ "Month 12 : A vs. B" = c( 0, 0,-1, 1, 0, 0),
+ "Month 20 : A vs. B" = c( 0, 0, 0, 0,-1, 1))),
+ adjust="none", level = 0.95, infer = c(TRUE, TRUE))
contrast estimate SE df asymp.LCL asymp.UCL z.ratio p.value
Month 6 : A vs. B 0.050 0.325 Inf -0.586 0.687 0.155 0.8770
Month 12 : A vs. B -0.590 0.365 Inf -1.305 0.126 -1.616 0.1060
Month 20 : A vs. B -0.826 0.350 Inf -1.513 -0.139 -2.357 0.0180
Results are averaged over the levels of: cut
Confidence level used: 0.95
> joint_tests(lord_grid)
Error in solve.default(zcov, z) :
system is computationally singular: reciprocal condition number = 2.87943e-19
Error in solve.default(zcov, z) :
system is computationally singular: reciprocal condition number = 1.65641e-18
Error in rbind(deparse.level, ...) :
numbers of columns of arguments do not match
I'm wondering what caused this, since the contrasts estimates showed reasonable values...
Same answer. You averaged over cut
. It creates linear dependence.
Right, system is computationally singular: reciprocal condition number = 1.65641e-18
. Thank you very much.
Hello,
I have a 2-arm study with 3 repeated observation timepoints and ordinal response at each timepoint. I attach the data on the bottom.
I analyze it via GEE using the multgee and repolr packages.
Let's fit a model
It converged. Now let's make the grid and emmeans:
And test some contrasts I was interested in:
OK. Now let's switch to other modes:
mode = "cum.prob" emmeans worked, yet joint_tests failed. What could cause that?
This time joint_tests() failed.
mode = "prob"
What does it mean to have all estimated equal to same value 0.167 here? joint_tests() failed as well. The behaviour of both tested packages is the same here.
The data: