predictmeans: Predicted Means for Linear and Semiparametric Models
Predicted means, standard errors, contrasts, multiple comparisons,
permutation and bootstrap tests, R-squared and diagnostics for models fitted by
'aov', 'lm', 'glm', 'gls', 'lme', 'lmer', 'glmer', 'glmmTMB', 'gam' and 'semireg'.
Defaults are chosen on evidence: Kenward-Roger degrees of freedom and adjusted
standard errors for REML 'lmer' fits (Kenward and Roger (1997) <doi:10.2307/2533558>),
permutation p-values (b+1)/(B+1), stratum standard errors for 'aov' models with
Error() terms as in 'Genstat', and equal-weight means over observed cells with a
warning. Results are tested against 'SAS' PROC MIXED and 'Genstat' output and
the 'pbkrtest', 'nlme' and 'emmeans' packages. Functions stop with a message
rather than return a wrong result, give one-line advice triggered by the data,
and give the same resampling results for any number of cores.
| Version: |
2.0.0 |
| Depends: |
R (≥ 3.6.0), lme4, nlme |
| Imports: |
glmmTMB, ggplot2 (≥ 3.4.0), graphics, grDevices, grid, Matrix, MASS, methods, mgcv, numDeriv, parallel, stats, utils |
| Suggests: |
ordinal, car, reformulas, TMB, lmerTest, emmeans, generics, marginaleffects, mvtnorm, HRW, pbkrtest, plotly, testthat (≥
3.0.0), knitr, rmarkdown |
| Published: |
2026-11-24 |
| DOI: |
10.32614/CRAN.package.predictmeans |
| Author: |
Dongwen Luo [aut, cre],
Siva Ganesh [aut],
John Koolaard [aut],
James Curran [aut] |
| Maintainer: |
Dongwen Luo <dongwen.luo at agresearch.co.nz> |
| BugReports: |
https://github.com/dongwenluo/predictmeans/issues |
| License: |
GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| URL: |
https://dongwenluo.github.io/predictmeans/,
https://github.com/dongwenluo/predictmeans,
https://CRAN.R-project.org/package=predictmeans |
| NeedsCompilation: |
no |
| Materials: |
README, NEWS |
| CRAN checks: |
predictmeans results |
Documentation:
| Reference manual: |
predictmeans.html , predictmeans.pdf
|
| Vignettes: |
Adjusted R² for generalized linear mixed models (source, R code)
Checking the model (source, R code)
Contrasts, joint tests and slopes (source, R code)
Migrating from predictmeans 1.x (source, R code)
Missing cells and non-estimable means (source, R code)
Getting started with predictmeans (source, R code)
Permutation and bootstrap tests (source)
Link and response scale (source, R code)
Matching SAS PROC MIXED (source, R code)
Smooth curves in mixed models (source)
|
Downloads:
Reverse dependencies:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=predictmeans
to link to this page.