# r2glmm: Computes R Squared for Mixed (Multilevel) Models

The model R squared and semi-partial R squared for the linear and generalized linear mixed model (LMM and GLMM) are computed with confidence limits. The R squared measure from Edwards et.al (2008) <DOI:10.1002/sim.3429> is extended to the GLMM using penalized quasi-likelihood (PQL) estimation (see Jaeger et al. 2016 <DOI:10.1080/02664763.2016.1193725>). Three methods of computation are provided and described as follows. Firstly, The Kenward-Roger approach. Due to some inconsistency between the 'pbkrtest' package and the 'glmmPQL' function, the Kenward-Roger approach in the 'r2glmm' package is limited to the LMM. Secondly, The method introduced by Nakagawa and Schielzeth (2013) <DOI:10.1111/j.2041-210x.2012.00261.x> and later extended by Johnson (2014) <DOI:10.1111/2041-210X.12225>. The 'r2glmm' package only computes marginal R squared for the LMM and does not generalize the statistic to the GLMM; however, confidence limits and semi-partial R squared for fixed effects are useful additions. Lastly, an approach using standardized generalized variance (SGV) can be used for covariance model selection. Package installation instructions can be found in the readme file.

- Author
- Byron Jaeger [aut, cre]
- Date of publication
- 2016-09-15 16:16:53
- Maintainer
- Byron Jaeger <byron.jaeger@gmail.com>
- License
- GPL-2
- Version
- 0.1.0
- URLs

## Man pages

- calc_sgv
- Compute the standardized generalized variance (SGV) of a...
- cmp_R2
- Compute r2beta with a specified C matrix Compute R2 with a...
- glmPQL
- Compute PQL estimates for fixed effects from a generalized...
- is.CompSym
- Checks if a matrix is Compound Symmetric.
- make.partial.C
- Generate partial contrast matrices
- plot_r2
- Generate partial contrast matrices
- r2beta
- r2beta

## Files in this package

r2glmm |

r2glmm/tests |

r2glmm/tests/testthat.R |

r2glmm/tests/testthat |

r2glmm/tests/testthat/test_R2.R |

r2glmm/NAMESPACE |

r2glmm/R |

r2glmm/R/plot_r2_Function.R |

r2glmm/R/r2beta_glmmPQL_Function.R |

r2glmm/R/cmpR2_Function.R |

r2glmm/R/glm_PQL_Function.R |

r2glmm/R/r2beta_glm_Function.R |

r2glmm/R/mpc_Function.R |

r2glmm/R/r2beta_lme_Function.R |

r2glmm/R/r2beta_Function.R |

r2glmm/R/r2_sgv_est_Function.R |

r2glmm/R/r2beta_lm_Function.R |

r2glmm/R/r2beta_lmerMod_Function.R |

r2glmm/README.md |

r2glmm/MD5 |

r2glmm/DESCRIPTION |

r2glmm/man |

r2glmm/man/is.CompSym.Rd |

r2glmm/man/glmPQL.Rd |

r2glmm/man/calc_sgv.Rd |

r2glmm/man/cmp_R2.Rd |

r2glmm/man/make.partial.C.Rd |

r2glmm/man/plot_r2.Rd |

r2glmm/man/r2beta.Rd |