newdata: Generate New Data Frames for Prediction
Generates new data frames for predictive purposes. By
default, all specified variables vary across their range while all
other variables are held constant at the default reference value.
Types, classes, factor levels and time zones are always preserved.
The user can specify the length of each sequence, require that only
observed values and combinations are used and add new variables. The
result is intended to be passed to the prediction method of a fitted
model object to visualize the effect of one or more variables while
controlling for the others.
| Version: |
0.1.0 |
| Depends: |
R (≥ 4.1) |
| Imports: |
chk, dplyr, hms, lifecycle, rlang, tibble, tidyr, vctrs |
| Suggests: |
covr, datasets, spelling, testthat (≥ 3.0.0), withr |
| Published: |
2026-11-07 |
| DOI: |
10.32614/CRAN.package.newdata (may not be active yet) |
| Author: |
Joe Thorley [aut,
cre],
Kirill Müller
[aut],
Ayla Pearson
[aut],
Nadine Hussein
[ctb],
Maëlle Salmon
[ctb],
Poisson Consulting [fnd, cph] |
| Maintainer: |
Joe Thorley <joe at poissonconsulting.ca> |
| BugReports: |
https://github.com/poissonconsulting/newdata/issues |
| License: |
MIT + file LICENSE |
| URL: |
https://poissonconsulting.github.io/newdata/,
https://github.com/poissonconsulting/newdata/ |
| NeedsCompilation: |
no |
| Language: |
en-US |
| Materials: |
README, NEWS |
| CRAN checks: |
newdata results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=newdata
to link to this page.