I fit this mixed model with beta for the response variable: photochemical efficiency or Fv/Fm and the predictor variables are categorical:
Family: beta ( logit )
Formula: FvFm ~ hora * temperatura + (1 | Experimento)
Data: d
AIC BIC logLik deviance df.resid
-730.4 -711.2 371.2 -742.4 174
Random effects:
Conditional model:
Groups Name Variance Std.Dev.
Experimento (Intercept) 0.0099 0.0995
Number of obs: 180, groups: Experimento, 5
Dispersion parameter for beta family (): 262
Conditional model:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 0.26960 0.04821 5.59 2.24e-08 ***
hora4 0.03181 0.02627 1.21 0.2260
temperatura20 0.05626 0.02630 2.14 0.0324 *
hora4:temperatura20 -1.44971 0.03859 -37.56 < 2e-16 ***
I have been trying to interpret a posteriori test, emmeans results with type="response", so I get the odds ratios (exp) of the estimated marginal means for all possible comparison groups.
> emmGrid<-emmeans(m2, specs=pairwise~temperatura*hora, type="response")
> emmGrid
$emmeans
temperatura hora response SE df asymp.LCL asymp.UCL
2 0 0.567 0.01184 Inf 0.544 0.590
20 0 0.581 0.01175 Inf 0.558 0.604
2 4 0.575 0.01179 Inf 0.552 0.598
20 4 0.251 0.00928 Inf 0.233 0.270
Confidence level used: 0.95
Intervals are back-transformed from the logit scale
$contrasts
contrast odds.ratio SE df null z.ratio p.value
temperatura2 hora0 / temperatura20 hora0 0.945 0.0249 Inf 1 -2.139 0.1408
temperatura2 hora0 / temperatura2 hora4 0.969 0.0254 Inf 1 -1.211 0.6200
temperatura2 hora0 / temperatura20 hora4 3.903 0.1101 Inf 1 48.268 <.0001
temperatura20 hora0 / temperatura2 hora4 1.025 0.0270 Inf 1 0.929 0.7894
temperatura20 hora0 / temperatura20 hora4 4.128 0.1167 Inf 1 50.149 <.0001
temperatura2 hora4 / temperatura20 hora4 4.029 0.1138 Inf 1 49.346 <.0001
P value adjustment: tukey method for comparing a family of 4 estimates
Tests are performed on the log odds ratio scale
I have doubts about this: 1-Is it ok to do this test for glmmtmb beta? 2-if it is possible: how to interpret these odd. ratios?, from what I have read I understand that an odd ratio of 1 indicates no change therefore for odds.ratio close to 4 will indicate that it is four times more likely to occur, only those are significant. 3-odd ratio as shown below the output is in logit scale? Thank you very much!!, any ideas, please post... fran
The outcome of a beta-regression is bound between 0 and 1, thus, the predictions on the response scale should also range between 0 and 1. These can be interpreted as "predicted proportion". Therefore, I would probably use the same response scale for pairwise comparisons or contrasts, which makes it easier to interpret. I guess you can change the scale for emmeans, but you could also use the ggeffects-package to get predictions and contrasts/comparisons. Here is an example, see also my comments in the code:
Created on 2023-11-09 with reprex v2.0.2