Dear all,
I am using linear mixed effect models in my experiment (using r package). I would like to show a measurement of the fitting quality of the model. I see that there are lot of methods but two of the most frequently are:
1) Xu, R. (2003). Measuring explained variation in linear mixed effects models. Statistics in medicine, 22(22), 3527-3541.
2) Nakagawa, S., & Schielzeth, H. (2013). A general and simple method for obtaining R2 from generalized linear mixed‐effects models. Methods in Ecology and Evolution, 4(2), 133-142.
I have tried to use those aproach to my data obtaining different results. Please look:
Approach 1. Method from Nakagawa et al.(2012) basing on this post: https://ecologyforacrowdedplanet.wordpress.com/2013/08/27/r-squared-in-mixed-models-the-easy-way/
> r.squaredGLMM(reves_m1)
R2m R2c
[1,] 0.02128424 0.5280393
Approach 2. Method from Xu(2013) basing on this post:https://stats.stackexchange.com/questions/95054/how-to-get-an-overall-p-value-and-effect-size-for-a-categorical-factor-in-a-mi
> 1-var(residuals(reves_m1))/(var(model.response(model.frame(reves_m1))))
[1] 0.5338557
As you can see R^2 marginal from the Nakagawa formula is very similar to the R^2 obtained with the formula of Ronghui Xu but in other post I have read that it is better to use the R^2 marginal from the Nagawaka formula. Could someone give me some idea of the differences between R^2 marginal and R^2 conditional? Which one I should comment in my paper if I would like to talk about how the model fits? In my case the R^2 conditional is moreless high (0.52) but the R^2 marginal is very low (0.02)
Thanks very much,
Gabriel Delgado