The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

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.1
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, colorspace, vdiffr, nnet, car, reformulas, TMB, lmerTest, emmeans, generics, marginaleffects, insight, performance, betareg, mmrm, quantreg, survival, coxme, mvtnorm, HRW, pbkrtest, plotly, heritable, VGAM, brms, rstanarm, rstan, posterior, bayestestR, coda, splines2, MCMCglmm, testthat (≥ 3.2.0), knitr, rmarkdown
Published: 2026-12-03
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:

Package source: predictmeans_2.0.1.tar.gz
Windows binaries: r-devel: predictmeans_2.0.0.zip, r-release: predictmeans_2.0.0.zip, r-oldrel: predictmeans_2.0.0.zip
macOS binaries: r-release (arm64): predictmeans_2.0.1.tgz, r-oldrel (arm64): predictmeans_2.0.1.tgz, r-release (x86_64): predictmeans_2.0.1.tgz, r-oldrel (x86_64): predictmeans_2.0.1.tgz
Old sources: predictmeans archive

Reverse dependencies:

Reverse imports: eda4treeR

Linking:

Please use the canonical form https://CRAN.R-project.org/package=predictmeans to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.