Case-Wise and Cluster-Wise Derivatives for Mixed Effects Models
Overview
Compute case-wise and cluster-wise derivative for mixed effects models with respect to fixed effects parameter, random effect (co)variances, and residual variance. This material is partially based on work supported by the National Science Foundation under Grant Number 1460719.
Bug fixes
vcov.lmerMod(full = TRUE)andestfun.lmerMod()returned the random effect (co)variance results in an order that did not match their labels when a random effect block was 3x3 or larger, so results depended on the order in which random effects were entered in the model formula (Github issue #2, reported by James Pustejovsky). The parameter index matrix is now built fromLambdat, whichLindactually indexes, instead ofLambda.vcov.lmerMod(full = TRUE, information = "observed")failed for REML fits because the internal Hessian entries were not coerced to numeric.
Other changes
- New regression tests covering Github issues #2 and #3, and updated lavaan model syntax (Github issue #4, reported by Yves Rosseel).
Show all changes in 0.2-6Hide the rest of the changes in 0.2-6
- Documentation fixes, including the
bread.glmerMod()man page (contributed by Ben Bolker). - Suggested packages (mirt, lmeInfo, nlme, smdata) are now used conditionally in tests, and the duplicated Suggests field in DESCRIPTION was merged.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-23
- ERROR12 OK, 1 ERROR2026-07-07
- OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 8
- Examples that run
- 0%8 never run
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- 100%
- Help pages citing references
- 100%
Downloads
Repository
- PRs merged (all time)
- 67%
- Median days to close, 50 most recently updated closed issues
- 1,491
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Commit identities over time
Checks run against github.com/nctingwang/merderiv on 2026-10-11.
No development-tooling practices detected in the upstream repository.
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-07-15Pull request it wrote: opened by a project memberCommits: 3 by its own account · at least 3 crediting it in the message
- Claude Fable 53 commits · Jul 2026
Dependencies
Installing merDeriv adds 18 packages (12 with compiled code, 16 MB of source tarballs). Heaviest: lme4 4.1 MB, nloptr 2.1 MB, Rcpp 1.8 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.2-6Latest
- RR 4.6.0 released · 2026-04-24
- 0.2-52025-06-12 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.2-42022-03-12 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.2-32021-01-26 · diff ↗
- 0.2-22020-10-22 · diff ↗
- 0.2-12020-10-18 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.1-92020-03-10 · diff ↗
- 0.1-82020-02-12 · diff ↗
- 0.1-7
Show 10 earlier eventsHide 10 earlier events
Package metadata
- First published
- 2017-02-18
- Total releases
- 15 / 9 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.2.3
- Download size
- 17 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("merDeriv")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v087.c01.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.