Skip to content

modelbased

0.18.0Package record

Estimation of Model-Based Predictions, Contrasts and Means

3packages dependsuggested by 10
287.7Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Implements a general interface for model-based estimations for a wide variety of models, used in the computation of marginal means, contrast analysis and predictions. For a list of supported models, see 'insight::supported_models()'.

Changes in 0.17.0

Breaking Changes

  • The comparison argument in estimate_contrasts() for backend = "emmeans" now defaults to "revpairwise", to return consistent results regarding the sign of contrasts with the "marginaleffects" backend.

Changes

  • For contrasts of models where predictions vary by response category (e.g., categorical, ordinal/cumulative or multinomial models, as well as multivariate response models), estimate_contrasts() now returns separate Response1 and Response2 columns instead of merging the response category label into the Level1 and Level2 columns (#646).
  • The iterations argument can now also be used for Bayesian model in estimate_means(), estimate_slopes(), and estimate_contrasts(), which is then passed to the ndraws argument and controls how many samples are drawn from the posterior when calculating marginal means, effects or contrasts.
Show all changes in 0.17.0Hide the rest of the changes in 0.17.0
  • ci = NULL now suppresses calculation of standard errors and confidence intervals.
  • The data argument can be used as an alias for newdata in estimate_means(), estimate_slopes(), and estimate_contrasts(), and is passed to the related *marginaleffects* functions.
  • Improved default settings for plots using tinyplot():
  • facets now automatically remove redundant axes. If you prefer to keep them, you can simply enable them by setting frame = TRUE.
  • The x-axis now automatically adjusts its limits when categorical predictors are used. By setting xlim to c(0.5, n + 0.5), the geoms are moved closer together, resulting in a more compact appearance.
  • tinyplot() for *modelbased* objects now supports standard arguments following easystats conventions, allowing for more fine-grained plot customizations (e.g., text/line sizes, color palettes, and axis title sizes).
  • New options for printing (in particular, formatting CIs), see also documentation (?modelbased::"modelbased-options").
  • Improved documentation for estimate_means() and vignettes about technical details of marginalization.

Bug fixes

  • estimate_contrasts() with backend = "emmeans" now correctly parses factor levels that contain " - " in their names (e.g., "A - High", "B - Low"). emmeans wraps such levels in parentheses (e.g., "(A - Low) - (A - High)"), which is now handled properly (#649).
  • Fixed issue with estimate = "average" in estimate_slopes() when no by variable was specified and therefore no data grid created. This caused an issue with filtering the output.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-23
  • ERROR12 OK, 1 ERROR2026-07-21
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.17.0

Release 0.18.0 has not been analysed yet.

READMEYes · 2,357 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.17.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites a JOSS paper
Help pages
24 (3 internal)includes a package overview page
Examples that run
94%15 run in a plain check (13 of them under a condition) · 1 never run
Exported functions with examples
93%
Documented parameters
99%
Return-value docs
79%
Help pages citing references
29%

Downloads

287.7K
CRAN downloads in the past year
Rank #682 · ~788/day · ~24K/mo
Daily download trend is not available in this view yet.
26.2K30 days
79.9K90 days
287.7K1 year
Compare downloads with other packages →
Also on3.4K r2u5 autocran4.8K conda_forge87 c2d4u

Repository

263Stars
23Forks
16Open issues
4Open PRs
15Releases
1,874Commits
17Commit identities
contrastsmarginalmeansmarginal-effectspredictestimateeasystatsr
License file reads as GPL-3.0 · 1,874 commits · Last activity 2026-10-18 · 0% stars, 30d · Discussions: 8 posts
Responsiveness
How these are sampled
PRs merged (all time)
95%
Median days to close, 50 most recently updated closed issues
3
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-09 · 2542026-09-16 · 263
PracticesBeta

15 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/easystats/modelbased on 2026-10-11.

Continuous integration (1)
GitHub Actions
Governance and community (5)
Code of conductContributing guideFundingSupport guide

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-08

pkgdown site last built 2026-10-08, before release 0.18.0 (2026-10-18)

Coverage (1)
Coverage reporting
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (4)
lintrLint workflowAirRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-10-05
    Pull request: opened by its own account
    Commits: 3 by its own account · at least 3 crediting it in the message
  • Gemini CLIfirst seen 2026-02-05
    Seen in the repository: GEMINI.md
    Named in .Rbuildignore: GEMINI.md
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Reverse dependencies
3direct
2indirect
Imports 3
Suggested by 10
Show all 13 packagesHide all 13 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (5)
Author, Maintainer since 0.1.0 (2020)
Author · added in 0.6.0
Author · added in 0.10.0
Releases (30)

Pick two releases to compare their code metrics.

  • 0.18.0Latest
    record
    2026-10-18 · current release · diff ↗ ·
    listed once in CRAN's queue
    Seen in one reading of CRAN's incoming queue, at 2026-10-18 16:17 UTC, so it stayed less than the time between readings.
  • 0.17.0
    record
    2026-08-28 · diff ↗
  • 0.16.0
    record
    2026-06-30 · diff ↗
  • 0.15.0
    record
    2026-05-10 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.14.0
    record
    2026-02-17 · diff ↗ ·
    added 1 export
    collapse_by_group
  • 0.13.1
    record
    2025-12-08 · diff ↗
  • 0.13.0
    record
    2025-08-30 · diff ↗ ·
    added 1 export
    residualize_over_grid
  • 0.12.0
    record
    2025-07-10 · diff ↗ ·
    added 1 export
    display
  • 0.11.2
    record
    2025-05-31 · diff ↗
  • 0.11.0
    record
    2025-05-02 · diff ↗ ·
    added 1 export
    pool_slopes
  • R
    R 4.5.0 released · 2025-04-11
  • 0.10.0
    record
    2025-03-10 · diff ↗ ·
    removed 1 export
    visualisation_matrix
    added 2 exports
    pool_contrasts, pool_predictions
  • 0.9.0
    record
    2025-02-05 · diff ↗ ·
    removed 5 exports
    estimate_response, get_marginaleffects, model_emcontrasts, model_emmeans, model_emtrends
    added 4 exports
    get_marginalcontrasts, get_marginalmeans, get_marginaltrends, print_html
  • 0.8.9
    record
    2024-10-26 · diff ↗
  • 0.8.8
    record
    2024-06-11 · diff ↗
Show 24 earlier eventsHide 24 earlier events
  • R
    R 4.4.0 released · 2024-04-24
  • 0.8.7
    record
    2024-02-15 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.8.6
    record
    2023-01-13 · diff ↗
  • 0.8.5
    record
    2022-08-18 · diff ↗ ·
    added 1 export
    print_md
  • unarchivedReturned to CRAN
    2022-05-30
  • archivedRemoved from CRAN
    2022-05-30
    check problems were not corrected in time
  • 0.8.1
    record
    2022-05-30 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.8.0
    record
    2022-03-31 · diff ↗ ·
    removed 2 exports
    data_matrix, model_marginaleffects
    added 4 exports
    get_emcontrasts, get_emmeans, get_emtrends, get_marginaleffects
  • 0.7.2
    record
    2022-02-28 · diff ↗ ·
    added 3 exports
    model_marginaleffects, standardize, unstandardize
  • 0.7.1
    record
    2022-01-13 · diff ↗ ·
    added 3 exports
    data_matrix, model_emcontrasts, model_emtrends
  • 0.7.0
    record
    2021-06-06 · diff ↗ ·
    removed 2 exports
    as.numeric_ifnumeric, data_restoretype
    added 6 exports
    describe_nonlinear, estimate_expectation, estimate_grouplevel, model_emmeans, reshape_grouplevel, visualisation_recipe
  • R
    R 4.1.0 released · 2021-05-18
  • 0.6.0
    record
    2021-04-12 · diff ↗ ·
    removed 1 export
    reshape_draws
    added 3 exports
    data_restoretype, estimate_prediction, estimate_relation
  • 0.5.1
    record
    2021-01-27 · diff ↗
  • 0.5.0
    record
    2021-01-15 · diff ↗
  • 0.4.0
    record
    2020-12-06 · diff ↗
  • 0.3.0
    record
    2020-09-27 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.2
    record
    2020-03-12 · diff ↗
  • 0.1.1
    record
    2020-01-27 · diff ↗
  • 0.1.0
    record
    2020-01-12
  • R
    R 3.6.0 released · 2019-04-26
Across CRAN, the median accepted release of the past year spent 19 hours in the queue, 90% under 11 days.How queue time is measured

Package metadata

First published
2020-01-12
Total releases
30 / 6 yrs
License
GPL-3 OSI
Minimum R
≥ 4.0
Bundled data
17 KB / 4 files
Download size
624 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("modelbased")
Makowski, D., Ben-Shachar, M. S., Lüdecke, D., Patil, I., & Thériault, R. (2026). modelbased: Estimation of Model-Based Predictions, Contrasts and Means (Version 0.18.0) [Computer software]. https://doi.org/10.32614/CRAN.package.modelbased

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for modelbased version 0.18.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy