Learn R Programming

merDeriv

merDeriv is a free, open source R package for computing derivatives of mixed models estimated via lme4. Allows users to compute scores (casewise/clusterwise first derivatives of likelihood function) and variance-covariance matrix of all estimated parameters, including random effect (co)variances. The authors acknowledge support from NSF grant 1460719. The contents of this package are those of the authors and do not reflect the views of the National Science Foundation.

For further information, see:

Wang, T. & Merkle, E. C. (2018). Derivative Computations and Robust Standard Errors for Linear Mixed Effects Models in lme4. Journal of Statistical Software, 87(1), 1-16. DOI: 10.18637/jss.v087.c01

Copy Link

Version

Install

install.packages('merDeriv')

Monthly Downloads

9,882

Version

0.2-5

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Ting Wang

Last Published

June 12th, 2025

Functions in merDeriv (0.2-5)

vcov.glmerMod

Extract Variance-Covariance Matrix of all Parameters for Generalized Linear Mixed Effects Models
llcont.lmerMod

Extract Case-wise Log Likelihoods for Linear Mixed Effects Models
vcov.lmerMod

Extract Variance-Covariance Matrix of all Parameters for Linear Mixed Effects Models
estfun.lmerMod

Extract Case-wise and Cluster-wise Derivatives for Linear Mixed Effects Models
bread.glmerMod

Extract Bread Component for Huber-White Sandwich Estimator of Generalized Linear Mixed Effects Models
llcont.glmerMod

Extract Cluster-wise Log Likelihoods for Generalized Linear Mixed Effects Models
bread.lmerMod

Extract Bread Component for Huber-White Sandwich Estimator of Linear Mixed Effects Models
estfun.glmerMod

Extract Cluster-wise Derivatives for Generalized Linear Mixed Effects Models