0

I need to determine shared variability between fixed and random effects in a mixed model in R:

MODEL <- lmer(LNC ~ Soil.VAR + (1 | ZONE)

# calculates the marginal R2 + conditional R2,
# but I am interested in shared variability
r.squaredGLMM(MOD) 

Thanks !

markus
  • 24,556
  • 5
  • 34
  • 51
  • Welcome to SO! Can you create a minimal reproducible example? See https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example – markus Feb 04 '20 at 20:53
  • By "shared variability" do you simply mean the covariance, as available through `cov()`? The definition of fixed vs. random effects also varies across sources https://stats.stackexchange.com/questions/4700/what-is-the-difference-between-fixed-effect-random-effect-and-mixed-effect-mode. Perhaps this question would be answered better on that site? – Brian Stamper Feb 04 '20 at 21:28

0 Answers0