Closed singmann closed 4 years ago
Thanks for reporting this. There was an extra parameter (phi)
in this model that is not associated with the linear predictor. I modified the code so it uses only the parameters for the linear predictor.
> emmeans(model_gy, "batch", type = "response")
batch response lower.HPD upper.HPD
1 0.324 0.1843 0.474
2 0.235 0.0955 0.392
3 0.280 0.1459 0.436
4 0.206 0.0897 0.327
5 0.213 0.0993 0.332
6 0.206 0.0896 0.335
7 0.143 0.0560 0.241
8 0.138 0.0620 0.242
9 0.119 0.0426 0.265
10 0.108 0.0561 0.202
Point estimate displayed: median
Results are back-transformed from the logit scale
HPD interval probability: 0.95
I think I "probably" should change the error message too, to allow for other possibilities tjhan rank deficiency...
Hi Russ, thanks for the (as usual) super fast fix.
And a more neutral error message might have helped a bit. I tried with a few different data sets to make sure it is not related to rank deficiency.
We have checked and the fix works for our use case now. Thus, I am closing this issue.
It seems as if
emmeans
support forrstanarm
models does not work with beta regression family,family = mgcv::betar
.However, same data and model works without problem with other estimation approaches: