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:
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')) |
Bug tracker:https://github.com/bbolker/prediction/issues
- margex - Artificial data for margins, copied from Stata
Last updated 5 months agofrom:231467da87. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 09 2024 |
R-4.5-win | OK | Nov 09 2024 |
R-4.5-linux | OK | Nov 09 2024 |
R-4.4-win | OK | Nov 09 2024 |
R-4.4-mac | OK | Nov 09 2024 |
R-4.3-win | OK | Nov 09 2024 |
R-4.3-mac | OK | Nov 09 2024 |
Exports:build_datalistfind_datamean_or_modemedian_or_modepredictionprediction_summaryseq_range
Dependencies:data.table
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Extract Predictions from a Model Object | prediction-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.frames | build_datalist |
Extract data from a model object | find_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 Stata | margex |
Class-dependent variable aggregation | mean_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 vector | seq_range |