Package: prediction 0.3.18

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.

Authors:Thomas J. Leeper [aut], Carl Ganz [ctb], Vincent Arel-Bundock [ctb], Ben Bolker [ctb, cre]

prediction_0.3.18.tar.gz
prediction_0.3.18.zip(r-4.5)prediction_0.3.18.zip(r-4.4)prediction_0.3.18.zip(r-4.3)
prediction_0.3.18.tgz(r-4.4-any)prediction_0.3.18.tgz(r-4.3-any)
prediction_0.3.18.tar.gz(r-4.5-noble)prediction_0.3.18.tar.gz(r-4.4-noble)
prediction_0.3.18.tgz(r-4.4-emscripten)prediction_0.3.18.tgz(r-4.3-emscripten)
prediction.pdf |prediction.html
prediction/json (API)
NEWS

# Install 'prediction' in R:
install.packages('prediction', repos = c('https://bbolker.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/bbolker/prediction/issues

Datasets:
  • margex - Artificial data for margins, copied from Stata

On CRAN:

7.32 score 2 packages 116 scripts 10.0k downloads 18 mentions 7 exports 1 dependencies

Last updated 5 months agofrom:231467da87. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 09 2024
R-4.5-winOKNov 09 2024
R-4.5-linuxOKNov 09 2024
R-4.4-winOKNov 09 2024
R-4.4-macOKNov 09 2024
R-4.3-winOKNov 09 2024
R-4.3-macOKNov 09 2024

Exports:build_datalistfind_datamean_or_modemedian_or_modepredictionprediction_summaryseq_range

Dependencies:data.table

Readme and manuals

Help Manual

Help pageTopics
Extract Predictions from a Model Objectprediction-package prediction prediction.ar prediction.Arima prediction.arima0 prediction.betareg prediction.bigglm prediction.bigLm prediction.biglm prediction.bruto prediction.clm prediction.coxph prediction.crch prediction.default prediction.earth prediction.fda prediction.Gam prediction.gausspr prediction.gee prediction.glimML prediction.glimQL prediction.glm prediction.glmnet prediction.glmx prediction.gls prediction.hetglm prediction.hurdle prediction.hxlr prediction.ivreg prediction.knnreg prediction.kqr prediction.ksvm prediction.lda prediction.lm prediction.lme prediction.loess prediction.lqs prediction.mars prediction.mca prediction.mclogit prediction.merMod prediction.mlogit prediction.mnlogit prediction.mnp prediction.multinom prediction.naiveBayes prediction.nls prediction.nnet prediction.plm prediction.polr prediction.polyreg prediction.ppr prediction.princomp prediction.qda prediction.rlm prediction.rpart prediction.rq prediction.selection prediction.speedglm prediction.speedlm prediction.survreg prediction.svm prediction.svyglm prediction.train prediction.tree prediction.truncreg prediction.vgam prediction.vglm prediction.zeroinfl prediction_summary
Build list of data.framesbuild_datalist
Extract data from a model objectfind_data find_data.crch find_data.data.frame find_data.default find_data.glimML find_data.glimQL find_data.glm find_data.hxlr find_data.lm find_data.mca find_data.merMod find_data.svyglm find_data.train find_data.vgam find_data.vglm
Artificial data for margins, copied from Statamargex
Class-dependent variable aggregationmean_or_mode mean_or_mode.data.frame mean_or_mode.default mean_or_mode.numeric median_or_mode median_or_mode.data.frame median_or_mode.default median_or_mode.numeric
Create a sequence over the range of a vectorseq_range