Skip to content

prediction

0.3.18

Tidy, Type-Safe 'prediction()' Methods

3packages depend
226.5Kdownloads / year
47.7%test coverage
13/13checks pass

Overview

About
Maintained by Ben BolkerFirst published 2016-10-3011 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.22
47.7%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 693 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
83%
Documented parameters
93%
Return-value docs
100%
References docs
0%

Downloads

226.5K
CRAN downloads in the past year
Rank #991 · ~620/day · ~18.9K/mo
Daily download trend is not available in this view yet.
11.8K30 days
45.8K90 days
226.5K1 year
Compare downloads with other packages →
Also on4.4K r2u23 autocran4.9K conda_forge70 c2d4u

Repository

Repository
1Stars
0Forks
0Open issues
0Open PRs
0Releases
207Commits
4Contributors
207 commits · Last activity 2024-12-13

Stars over time

2025-05-11 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

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.

Continuous integration (2)
Travis CIAppVeyor
Reproducibility and dev environment (2)
data-raw/Makefile
Docs source (1)
README.Rmd
Governance and community (2)
Issue templatesPR template
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (3)
utilsstatsdata.table
LinkingTo (0)
none
Suggests (3)
datasetsmethodstestthat
Enhances (0)
none
Reverse dependencies
3direct
5indirect

Code & Tests

Code Composition
R 4,851 (82%)Rd 1,066 (18%)
Code characteristics
Object systems
S392
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

Loading call graph…

Lowest coverage

94 functions
FunctionCycloCoverage
find_data.glimML10%
find_data.glimQL10%
find_data.svyglm50%
find_data.train10%
prediction.Gam80%
prediction.betareg60%

Datasets

Bundled datasets · 1
NameClassRows × ColsAlso ships in
margextbl_df/tbl/data.frame3,000 × 11

People & History

People (4)
Maintainer (1)
Contributor, Maintainer · added in 0.3.18
Authors (1)
Contributors (3)
Contributor, Maintainer · added in 0.3.18
Contributor · added in 0.3.14
Contributor · added in 0.1.10
Package Timeline

11 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.3.18Latest
    2024-06-11 · current release · diff ↗
  • unarchivedReturned to CRAN
    2024-06-11
  • archivedRemoved from CRAN
    2024-05-08
    issues were not corrected in time , Fails its checks with the default _R_CHECK_SUGGESTS_ONLY_=false
  • 0.3.17
    2024-04-24 · diff ↗
  • unarchivedReturned to CRAN
    2024-04-24
  • R
    R 4.4.0 released · 2024-04-24
  • archivedRemoved from CRAN
    2024-04-12
    issues were not corrected despite reminders
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.3.14
    2019-06-17 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.6.2
    2019-01-31 · diff ↗
Show 10 earlier events
  • 0.3.6.1
    2018-12-04 · diff ↗
  • 0.3.6
    2018-05-22 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.3.2
    2018-04-12 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.2.0
    2017-04-19 · diff ↗
  • 0.1.11
    2017-03-22 · diff ↗
  • 0.1.10
    2017-03-01 · diff ↗
  • 0.1.1
    2016-10-30
  • R
    R 3.3.0 released · 2016-05-03

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
Report a problem with this page →