Package: emmeans 2.0.3

emmeans: Estimated Marginal Means, aka Least-Squares Means
Obtain estimated marginal means (EMMs) for many linear, generalized linear, and mixed models. Compute contrasts or linear functions of EMMs, trends, and comparisons of slopes. Plots and other displays. Least-squares means are discussed, and the term "estimated marginal means" is suggested, in Searle, Speed, and Milliken (1980) Population marginal means in the linear model: An alternative to least squares means, The American Statistician 34(4), 216-221 <doi:10.1080/00031305.1980.10483031>.
Authors:
emmeans_2.0.3.tar.gz
emmeans_2.0.3.zip(r-4.7)emmeans_2.0.3.zip(r-4.6)emmeans_2.0.3.zip(r-4.5)
emmeans_2.0.3.tgz(r-4.6-any)emmeans_2.0.3.tgz(r-4.5-any)
emmeans_2.0.3.tar.gz(r-4.7-any)emmeans_2.0.3.tar.gz(r-4.6-any)
emmeans_2.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
emmeans/json (API)
NEWS
| # Install 'emmeans' in R: |
| install.packages('emmeans', repos = c('https://rvlenth.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/rvlenth/emmeans/issues
Pkgdown/docs site:https://rvlenth.github.io
Last updated from:8c147297ed. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 261 | ||
| source / vignettes | OK | 362 | ||
| linux-release-x86_64 | OK | 388 | ||
| macos-release-arm64 | OK | 157 | ||
| macos-oldrel-arm64 | OK | 181 | ||
| windows-devel | OK | 170 | ||
| windows-release | OK | 178 | ||
| windows-oldrel | OK | 170 | ||
| wasm-release | OK | 193 |
Exports:.all.vars.aovlist.dffun.cmpMM.combine.terms.diag.emm_register.emm_vignette.get.excl.get.offset.hurdle.support.my.vcov.num.key.std.link.labels.zi.supportadd_groupingadd_submodelsas.emm_listas.emmGridas.glhtas.mcmc.emm_listas.mcmc.emmGridas.mcmc.list.emm_listas.mcmc.list.emmGridcomb_facsconsec.emmccontrastdel.eff.emmcdunnett.emmceff_sizeeff.emmcemmemm_basisemm_defaultsemm_exampleemm_optionsemmeansemmipemmip_ggplotemmip_latticeemmobjemtrendsforce_regularget_emm_optionget.lsm.optionhelmert.emmchpd.summaryidentity.emmcinversejoint_testslinfctlsmlsm.optionslsmeanslsmiplsmobjlstrendsmake.meanintmake.symmintmake.tranmean_chg.emmcmeanintmvcontrastmvregridnrmlz.emmcopoly.emmcpairwise.emmcpermute_levelspoly.emmcpwpmpwppqdrgrecover_dataref_gridregridrevpairwise.emmcsplit_facsymminttesttrt.vs.ctrl.emmctrt.vs.ctrl1.emmctrt.vs.ctrlk.emmctukey.emmcwith_emm_optionswtcon.emmc
Dependencies:estimabilitymvtnormnumDerivrlang
Quick start guide for emmeans
Rendered fromAQuickStart.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2026-03-30
Started: 2023-01-16
Basics of estimated marginal means
Rendered frombasics.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2024-12-18
Started: 2017-09-30
Comparisons and contrasts in emmeans
Rendered fromcomparisons.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2025-04-10
Started: 2017-09-30
Confidence intervals and tests in emmeans
Rendered fromconfidence-intervals.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2024-12-18
Started: 2017-09-30
Explanations supplement
Rendered fromxplanations.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2024-05-04
Started: 2020-05-15
FAQs for emmeans
Rendered fromFAQs.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2025-04-01
Started: 2017-09-30
For developers: Extending emmeans
Rendered fromxtending.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2026-03-30
Started: 2018-04-18
Index of vignette topics
Rendered fromvignette-topics.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2026-02-27
Started: 2018-04-07
Interaction analysis in emmeans
Rendered frominteractions.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2024-05-04
Started: 2017-09-30
Models supported by emmeans
Rendered frommodels.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2024-12-18
Started: 2017-09-30
Prediction in emmeans
Rendered frompredictions.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2026-03-30
Started: 2019-06-06
Re-engineering CLDs
Rendered fromre-engineering-clds.rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2026-03-30
Started: 2022-10-17
Sophisticated models in emmeans
Rendered fromsophisticated.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2026-05-05
Started: 2017-10-12
Transformations and link functions in emmeans
Rendered fromtransformations.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2024-12-18
Started: 2017-09-30
Utilities and options for emmeans
Rendered fromutilities.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2024-05-04
Started: 2017-10-02
Working with messy data
Rendered frommessy-data.Rmdusingknitr::rmarkdownon Jun 17 2026.Last update: 2026-02-27
Started: 2017-09-30
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Estimated marginal means (aka Least-squares means) | emmeans-package |
| Convert to and from 'emmGrid' objects | as.emmGrid as.emm_list as.list.emmGrid |
| Support for MCMC-based estimation | as.mcmc.emmGrid as.mcmc.emm_list as.mcmc.list.emmGrid as.mcmc.list.emm_list mcmc-support |
| Auto Pollution Filter Noise | auto.noise |
| Compact letter displays | cld.emmGrid cld.emm_list |
| Manipulate factors in a reference grid | add_grouping add_submodels comb_facs permute_levels split_fac |
| Contrasts and linear functions of EMMs | coef.emmGrid contrast contrast.emmGrid pairs.emmGrid weights.emmGrid |
| Contrast families | consec.emmc contrast-methods del.eff.emmc dunnett.emmc eff.emmc emmc-functions helmert.emmc identity.emmc mean_chg.emmc nrmlz.emmc opoly.emmc pairwise.emmc poly.emmc revpairwise.emmc trt.vs.ctrl.emmc trt.vs.ctrl1.emmc trt.vs.ctrlk.emmc tukey.emmc wtcon.emmc |
| Calculate Cohen effect sizes and confidence bounds thereof | eff_size |
| Support for 'multcomp::glht' | as.glht as.glht.emmGrid emm glht-support glht.emmGrid glht.emmlf modelparm.emmwrap |
| Run or list additional examples | emm_example |
| The 'emm_list' class | as.data.frame.emm_list as.data.frame.summary_eml coef.emm_list confint.emm_list contrast.emm_list emm_list linfct.emm_list pairs.emm_list plot.emm_list print.emm_list str.emm_list summary.emm_list test.emm_list |
| Set or change emmeans options | emm_defaults emm_options get_emm_option with_emm_options |
| Estimated marginal means (Least-squares means) | emmeans |
| The 'emmGrid' class | emmGrid-class |
| Interaction-style plots for estimated marginal means | emmip emmip.default emmip_ggplot emmip_lattice |
| Construct an 'emmGrid' object from scratch | emmobj |
| Estimated marginal means of linear trends | emtrends |
| Support functions for model extensions | .all.vars .aovlist.dffun .cmpMM .combine.terms .diag .emm_register .emm_vignette .get.excl .get.offset .hurdle.support .my.vcov .num.key .std.link.labels .zi.support emm_basis extending-emmeans recover_data recover_data.call |
| Feedlot data | feedlot |
| Fiber data | fiber |
| Summarize an emmGrid from a Bayesian model | hpd.summary |
| Compute joint tests of the terms in a model | joint_tests make.meanint make.symmint meanint symmint |
| Wrappers for alternative naming of EMMs | get.lsm.option lsm lsm.options lsmeans lsmip lsmobj lstrends wrappers |
| Response-transformation extensions | inverse make.tran |
| Oats data in multivariate form | MOats |
| Models supported in 'emmeans' | models |
| Multivariate contrasts | mvcontrast |
| Multivariate regridding | mvregrid |
| Neuralgia data | neuralgia |
| Nutrition data | nutrition |
| Sales of oranges | oranges |
| Effects of dietary protein on free plasma leucine concentration in pigs | pigs |
| Plot an 'emmGrid' or 'summary_emm' object | plot.emmGrid plot.summary_emm |
| Pairwise P-value matrix (plus other statistics) | pwpm |
| Pairwise P-value plot | pwpp |
| Quick and dirty reference grid | qdrg qdrg.default |
| Combine or subset 'emmGrid' objects | +.emmGrid force_regular head.emmGrid rbind.emmGrid rbind.emm_list rbind.summary_emm subset.emmGrid tail.emmGrid [.emmGrid |
| Create a reference grid from a fitted model | ref_grid |
| Reconstruct a reference grid with a new transformation or simulations | regrid |
| Miscellaneous methods for 'emmGrid' objects | linfct linfct.default print.emmGrid str.emmGrid vcov.emmGrid |
| Summaries, predictions, intervals, and tests for 'emmGrid' objects | as.data.frame.emmGrid confint.emmGrid predict.emmGrid summary.emmGrid test test.emmGrid [.summary_emm |
| Unbalanced dataset | ubds |
| Dare to be un-"tidy"! | untidy |
| Update an 'emmGrid' object | levels<-.emmGrid update.emmGrid update.summary_emm |
| Using 'xtable' for EMMs | print.xtable_emm xtable.emmGrid xtable.summary_emm |
