prediction
0.3.18Tidy, Type-Safe 'prediction()' Methods
Overview
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.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 83%
- Documented parameters
- 93%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Repository practices
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/bbolker/prediction on 2026-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 6.0 median / 15 max
- Test cases
- 85 / 0.22 per code line
Test coverage
Line coverage
48%
Expression
42.9%
Tests / Examples
47.7% / 9% ex
Functions
94 7 exported
Complexity
5.5 avg / 15 max
Call network
94 nodes / 173 edges
Call graph
Open call graph →Lowest coverage
94 functions| Function | Cyclo | Coverage |
|---|---|---|
| find_data.glimML | 1 | 0% |
| find_data.glimQL | 1 | 0% |
| find_data.svyglm | 5 | 0% |
| find_data.train | 1 | 0% |
| prediction.Gam | 8 | 0% |
| prediction.betareg | 6 | 0% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| margex | tbl_df/tbl/data.frame | 3,000 × 11 | – |
People & History
11 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.3.18Latest
- unarchivedReturned to CRAN2024-06-11
- archivedRemoved from CRAN2024-05-08issues were not corrected in time , Fails its checks with the default _R_CHECK_SUGGESTS_ONLY_=false
- 0.3.172024-04-24 · diff ↗
- unarchivedReturned to CRAN2024-04-24
- RR 4.4.0 released · 2024-04-24
- archivedRemoved from CRAN2024-04-12issues were not corrected despite reminders
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.3.142019-06-17 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.3.6.22019-01-31 · diff ↗
Package metadata
- First published
- 2016-10-30
- Total releases
- 11 / 10 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 18 KB / 1 file
- Download size
- 74 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet