Package: MCMCglmm 2.37

Jarrod Hadfield

MCMCglmm: MCMC Generalised Linear Mixed Models

Fits Multivariate Generalised Linear Mixed Models (and related models) using Markov chain Monte Carlo techniques (Hadfield 2010 J. Stat. Soft.).

Authors:Jarrod Hadfield [aut, cre]

MCMCglmm_2.37.tar.gz
MCMCglmm_2.37.zip(r-4.7)MCMCglmm_2.37.zip(r-4.6)MCMCglmm_2.37.zip(r-4.5)
MCMCglmm_2.37.tgz(r-4.6-x86_64)MCMCglmm_2.37.tgz(r-4.6-arm64)MCMCglmm_2.37.tgz(r-4.5-x86_64)MCMCglmm_2.37.tgz(r-4.5-arm64)
MCMCglmm_2.37.tar.gz(r-4.7-arm64)MCMCglmm_2.37.tar.gz(r-4.7-x86_64)MCMCglmm_2.37.tar.gz(r-4.6-arm64)MCMCglmm_2.37.tar.gz(r-4.6-x86_64)
MCMCglmm_2.37.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
MCMCglmm/json (API)

# Install 'MCMCglmm' in R:
install.packages('MCMCglmm', repos = c('https://phylotastic.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jarrodhadfield/mcmcglmm/issues

Pkgdown/docs site:https://jarrodhadfield.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • ABPvirus - Data on Acute Bee Paralysis Virus Infections in Bumblebees from Pascall et al. (2018).
  • BTdata - Blue Tit Data for a Quantitative Genetic Experiment
  • BTped - Blue Tit Pedigree
  • FullGrumpy - Full Grumpy Scores of Academics
  • Grumpy - Grumpy Scores of Academics
  • PlodiaPO - Phenoloxidase measures on caterpillars of the Indian meal moth.
  • PlodiaR - Resistance of Indian meal moth caterpillars to the granulosis virus PiGV.
  • PlodiaRB - Resistance (as a binary trait) of Indian meal moth caterpillars to the granulosis virus PiGV.
  • sigma - Infection Data for Sigma Virus in _Drosophila melanogaster_
  • SShorns - Horn type and genders of Soay Sheep
  • tufted_puffin - Diet composition of Tufted Puffin

On CRAN:

Conda:

cpp

11.04 score 5 stars 12 packages 1.6k scripts 11k downloads 477 mentions 49 exports 11 dependencies

Last updated from:6291bfef47. Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK188
linux-devel-x86_64OK172
source / vignettesOK229
linux-release-arm64OK156
linux-release-x86_64OK177
macos-release-arm64OK168
macos-release-x86_64OK295
macos-oldrel-arm64OK175
macos-oldrel-x86_64OK223
windows-develOK201
windows-releaseOK230
windows-oldrelOK176
wasm-releaseOK127

Exports:at.levelat.setbuildVcommutationdcmvnormDdivergenceDexpressionsdpriorDtensorevalDtensorFgelman.priorIGinverseAIWknormKPPMkrzanowski.testkuniflist2bdiagMCMCglmmmemult.membpathpkkplot.MCMCglmmplotsubspaceposterior.anteposterior.corposterior.evalsposterior.inverseposterior.modepredict.MCMCglmmprunePedPtensorrbvresiduals.MCMCglmmresolve_priorrIWrpriorrtcmvnormrtnormsimulate.MCMCglmmsirsm2asremlsplsummary.MCMCglmmTri2MtSD

Dependencies:apecodacorpcorcubaturedigestlatticeMASSMatrixnlmeRcpptensorA

MCMCglmm Course Notes

Rendered fromCourseNotes.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2026-01-05
Started: 2025-12-24

Readme and manuals

Help Manual

Help pageTopics
Multivariate Generalised Linear Mixed ModelsMCMCglmm-package
Data on Acute Bee Paralysis Virus Infections in Bumblebees from Pascall et al. (2018).ABPvirus
Incidence Matrix of Levels within a Factorat.level
Incidence Matrix of Combined Levels within a Factorat.set
Blue Tit Data for a Quantitative Genetic ExperimentBTdata
Blue Tit PedigreeBTped
Forms expected (co)variances for GLMMs fitted with MCMCglmmbuildV
Commutation Matrixcommutation
Density of a (conditional) multivariate normal variatedcmvnorm
d-divergenceDdivergence
List of unevaluated expressions for (mixed) partial derivatives of fitness with respect to linear predictors.Dexpressions
Prior Density of Variance or Standard Deviationdprior
Tensor of (mixed) partial derivativesDtensor
Evaluates a list of (mixed) partial derivativesevalDtensor
Full Grumpy Scores of AcademicsFullGrumpy
Prior Covariance Matrix for Fixed Effects.gelman.prior
Grumpy Scores of AcademicsGrumpy
Inverse Relatedness Matrix and Phylogenetic Covariance MatrixinverseA
(Mixed) Central Moments of a Multivariate Normal Distributionknorm
Kronecker Product Permutation MatrixKPPM
Krzanowski's Comparison of Subspaceskrzanowski.test
Central Moments of a Uniform Distributionkunif
Forms the direct sum from a list of matriceslist2bdiag
Multivariate Generalised Linear Mixed ModelsMCMCglmm
Design Matrix for Measurement Error Modelme
Design Matrices for Multiple Membership Modelsmult.memb
Design Matrix for Path Analysespath
Probability that all multinomial categories have a non-zero count.pkk
Phenoloxidase measures on caterpillars of the Indian meal moth.PlodiaPO
Resistance of Indian meal moth caterpillars to the granulosis virus PiGV.PlodiaR
Resistance (as a binary trait) of Indian meal moth caterpillars to the granulosis virus PiGV.PlodiaRB
Plots MCMC chains from MCMCglmm using plot.mcmcplot.MCMCglmm
Plots covariance matricesplotsubspace
Posterior distribution of ante-dependence parametersposterior.ante
Transforms posterior distribution of covariances into correlationsposterior.cor
Posterior distribution of eigenvaluesposterior.evals
Posterior distribution of matrix inverseposterior.inverse
Estimates the marginal parameter modes using kernel density estimationposterior.mode
Predict method for GLMMs fitted with MCMCglmmpredict.MCMCglmm
Generator Functions for Priors in MCMCglmmF IG IW prior_generators tSD
Pedigree pruningprunePed
Tensor of Sample (Mixed) Central MomentsPtensor
Random Generation of MVN Breeding Values and Phylogenetic Effectsrbv
Residuals form a GLMM fitted with MCMCglmmresiduals.MCMCglmm
Resolves a Prior Specification in MCMCglmmresolve_prior
Random Generation from the Conditional Inverse Wishart DistributionrIW
Simulate Covariance Matrices from Priorrprior
Random Generation from a Truncated Conditional Normal Distributionrtcmvnorm
Random Generation from a Truncated Normal Distributionrtnorm
Infection Data for Sigma Virus in _Drosophila melanogaster_sigma
Simulate method for GLMMs fitted with MCMCglmmsimulate.MCMCglmm
Design Matrix for Simultaneous and Recursive Relationships between Responsessir
Converts sparseMatrix to asreml's giv formatsm2asreml
Orthogonal Spline Design Matrixspl
Horn type and genders of Soay SheepSShorns
Summarising GLMM Fits from MCMCglmmprint.MCMCglmm print.summary.MCMCglmm summary.MCMCglmm
Lower/Upper Triangle Elements of a MatrixTri2M
Diet composition of Tufted Puffintufted_puffin