Learn R Programming

QGglmm

NEWS

Due to its removal from CRAN, QGglmm dropped R2Cuba as a dependency to solve multivariate integrals. It is now using the package cubature. By taking advantage of the "vectorised" version of the algorithm, the multivariate computations of QGglmm (QGmvparams, QGvcov, QGmvmean, QGmvpsi, QGmvicc, QGmvpred) are considerably faster. Most functions are 10x-50x faster, but especially QGmvicc is 100x-500x faster. A comparison between the old and new version of the example of the man page of QGmvicc showed a decreased in computation from 25 minutes to... 4 seconds!

What is this package?

QGglmm computes various quantitative genetics parameters on the observed data scale from latent parameters estimated using a Generalised Linear Mixed Model (GLMM) estimates. Especially, it yields the phenotypic mean, phenotypic variance and additive genetic variance on the observed data scale.

More information can be found in this article and on CRAN.

How to install this package

Using CRAN

  • Simply use install.packages("QGglmm") as for any package.

From this GitHub

  • Install the packages on which QGglmm depends: cubature and mvtnorm. install.packages(c("cubature","mvtnorm"))
  • Go to the release page and download the latest release.
  • In a terminal, go to the folder where the release was downloaded and enter the following line:
    R CMD INSTALL QGglmm-xx.tar.gz where xx is the version number.
  • Alternatively, you can use the graphical tools of R-GUI or RStudio to manually install the package after download. For RStudio, this can be done using "Install Packages..." in the Tools menu, choosing "Install from: Package Archive File".

Submit feedback

If you encounter any bug or usability issue, or if you have some suggestions or feature request, please use the issue tracker. Thank you!

Copy Link

Version

Install

install.packages('QGglmm')

Monthly Downloads

207

Version

0.8.0

License

GPL-2

Maintainer

Pierre de Villemereuil

Last Published

January 20th, 2025

Functions in QGglmm (0.8.0)

QGpsi

Compute "Psi" (used to compute the additive genetic variance on the observed scale).
QGpred

Predict the evolutionary response to selection on the observed scale
QGvar.exp

Compute the variance of expected values (i.e. the latent values after inverse-link transformation.)
QGvcov

Compute the phenotypic variance-covariance matrix on the observed / expected scale
QGvar.dist

Compute the distribution variance
QGmean

Compute the phenotypic mean on the observed scale
QGglmm-package

tools:::Rd_package_title("QGglmm")
QGmvpsi

Compute a multivariate "Psi" (used to compute the additive genetic variance on the observed scale).
QGicc

Intra - Class Correlation coefficients (ICC) on the observed data scale
QGparams

Quantitative Genetics parameters from GLMM estimates.
QGlink.funcs

List of functions according to a distribution and a link function
QGmvparams

Quantitative Genetics parameters from GLMM estimates (multivariate analysis).
QGmvicc

Intra - Class Correlation coefficients (ICC) on the observed data scale (multivariate analysis).
QGmvpred

Predict the evolutionary response to selection on the observed scale
QGmvmean

Compute the multivariate phenotypic mean on the observed scale