Skip to content

prediction

Tidy, Type-Safe 'prediction()' Methods

v0.3.18 · Jun 11, 2024 · MIT + file LICENSE

Description

A one-function package containing prediction(), a type-safe alternative to predict() that always returns a data frame. The summary() method provides a data frame with average predictions, possibly over counterfactual versions of the data (à la the margins command in 'Stata'). Marginal effect estimation is provided by the related package, 'margins' <https://cran.r-project.org/package=margins>. The package currently supports common model types (e.g., lm, glm) from the 'stats' package, as well as numerous other model classes from other add-on packages. See the README file or main package documentation page for a complete listing.

Downloads

14.4K

Last 30 days

1032nd

43.9K

Last 90 days

206.6K

Last year

Trend: +3.6% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (3)

imports

suggests

Dependency Network

Dependencies Reverse dependencies data.table margins mhurdle estimatr prediction

Version History

new 0.3.18 Mar 10, 2026
updated 0.3.18 ← 0.3.17 diff Jun 10, 2024
updated 0.3.17 ← 0.3.14 diff Apr 23, 2024
updated 0.3.14 ← 0.3.6.2 diff Jun 16, 2019
updated 0.3.6.2 ← 0.3.6.1 diff Jan 30, 2019
updated 0.3.6.1 ← 0.3.6 diff Dec 3, 2018
updated 0.3.6 ← 0.3.2 diff May 21, 2018
updated 0.3.2 ← 0.2.0 diff Apr 11, 2018
updated 0.2.0 ← 0.1.11 diff Apr 18, 2017
updated 0.1.11 ← 0.1.10 diff Mar 21, 2017
updated 0.1.10 ← 0.1.1 diff Feb 28, 2017
new 0.1.1 Oct 29, 2016