prediction: Tidy, Type-Safe 'prediction()' Methods

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.

Getting started

Package details

AuthorThomas J. Leeper [aut] (<https://orcid.org/0000-0003-4097-6326>), Carl Ganz [ctb], Vincent Arel-Bundock [ctb] (<https://orcid.org/0000-0003-2042-7063>), Ben Bolker [ctb, cre] (<https://orcid.org/0000-0002-2127-0443>)
MaintainerBen Bolker <bolker@mcmaster.ca>
LicenseMIT + file LICENSE
Version0.3.18
URL https://github.com/bbolker/prediction
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("prediction")

Try the prediction package in your browser

Any scripts or data that you put into this service are public.

prediction documentation built on June 22, 2024, 10:18 a.m.