Package: tidyvpc 1.6.0

James Craig

tidyvpc: VPC Percentiles and Prediction Intervals

Perform a Visual Predictive Check (VPC), while accounting for stratification, censoring, and prediction correction. Using piping from 'magrittr', the intuitive syntax gives users a flexible and powerful method to generate VPCs using both traditional binning and a new binless approach Jamsen et al. (2018) <doi:10.1002/psp4.12319> with Additive Quantile Regression (AQR) and Locally Estimated Scatterplot Smoothing (LOESS) prediction correction.

Authors:Olivier Barriere [aut], Benjamin Rich [aut], James Craig [aut, cre], Samer Mouksassi [aut], Bill Denney [ctb], Michael Tomashevskiy [ctb], Kris Jamsen [ctb], Certara USA, Inc. [cph, fnd]

tidyvpc_1.6.0.tar.gz
tidyvpc_1.6.0.zip(r-4.7)tidyvpc_1.6.0.zip(r-4.6)tidyvpc_1.6.0.zip(r-4.5)
tidyvpc_1.6.0.tgz(r-4.6-any)tidyvpc_1.6.0.tgz(r-4.5-any)
tidyvpc_1.6.0.tar.gz(r-4.7-any)tidyvpc_1.6.0.tar.gz(r-4.6-any)
tidyvpc_1.6.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
tidyvpc/json (API)

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

Bug tracker:https://github.com/certara/tidyvpc/issues

Datasets:
  • obs_cat_data - Example observed data with categorical DV
  • obs_data - Example observed data with continuous DV
  • sim_cat_data - Example simulated data with categorical DV
  • sim_data - Example simulated data with continuous DV

On CRAN:

Conda:

8.26 score 11 stars 1 packages 63 scripts 919 downloads 20 exports 43 dependencies

Last updated from:9eddeb23ce. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK285
source / vignettesOK289
linux-release-x86_64OK237
macos-release-arm64OK177
macos-oldrel-arm64OK162
windows-develOK184
windows-releaseOK165
windows-oldrelOK181
wasm-releaseOK211

Exports:bin_by_classIntbin_by_eqcutbin_by_ntilebin_by_pambininfobinlessbinningcensoringcheck_ordercut_atnearestnopredcorrectnpdeobservedpredcorrectqpcstatssimulatedstratifytidyvpc_mcp_toolsvpcstats

Dependencies:classclassIntcliclustercpp11data.tablee1071eggfarverfastDummiesggplot2gluegridExtragtableisobandKernSmoothlabelinglatticelifecyclemagrittrMASSMatrixMatrixModelsmgcvnlmepillarpkgconfigproxyquantregR6RColorBrewerrlangS7scalesSparseMstringistringrsurvivaltibbleutf8vctrsviridisLitewithr

tidyvpc with RsNLME
Introduction | Setup

Last update: 2026-06-02
Started: 2026-06-02

Quantitative Predictive Check (QPC) scoring for VPC
Introduction | What QPC measures (methodology overview) | Data | Example 1: Basic QPC scoring | Example 2: QPC with prediction correction and stratification | Example 3: QPC scoring with traditional binning() | Example 4: Noisy simulations → wider confidence intervals → worse QPC | Tips for using sharp_ref and interval_ref

Last update: 2026-01-11
Started: 2026-01-11

Introduction to categorical VPC
Introduction | Data Setup | Binning | Binless

Last update: 2024-11-21
Started: 2024-11-21

Introduction to continuous VPC
Introduction | Data | observed() | simulated() | binning() | binless() | vpcstats() | stratify() | censoring() | predcorrect() | Extending further

Last update: 2024-11-21
Started: 2024-11-21

tidyvpc with nlmixr2
Introduction | Setup

Last update: 2024-11-21
Started: 2024-11-21

Readme and manuals

Help Manual

Help pageTopics
Obtain information about the bins from a 'tidyvpcobj'bininfo bininfo.tidyvpcobj
Perform binless Visual Predictive Check (VPC)binless binless.tidyvpcobj
Binning methods for Visual Predictive Check (VPC)binning binning.tidyvpcobj
Different functions that perform binning.binningfunctions bin_by_classInt bin_by_eqcut bin_by_ntile bin_by_pam cut_at nearest
Censoring observed data for Visual Predictive Check (VPC)censoring censoring.tidyvpcobj
Perform a consistency check on observed and simulated datacheck_order
Perform a Visual Predictive Check (VPC) computationgenerics
Remove prediction correction for Visual Predictive Check (VPC)nopredcorrect nopredcorrect.tidyvpcobj
Normalized Prediction Distribution Errorsnpde npde.tidyvpcobj
Example observed data with categorical DVobs_cat_data
Example observed data with continuous DVobs_data
Specify observed dataset and variables for VPCobserved observed.data.frame
Plot a 'tidyvpcobj'plot.tidyvpcobj
Prediction corrected Visual Predictive Check (pcVPC)predcorrect predcorrect.tidyvpcobj
Print a 'tidyvpcobj'print.tidyvpcobj
Compute Quantitative Predictive Check (QPC) statisticsqpcstats
Example simulated data with categorical DVsim_cat_data
Example simulated data with continuous DVsim_data
Specify simulated dataset and variables for VPCsimulated simulated.tidyvpcobj
Stratification for Visual Predictive Check (VPC)stratify stratify.tidyvpcobj
tidyvpc MCP tools for the Certara hosttidyvpc_mcp_tools
Compute VPC statisticsvpcstats vpcstats.tidyvpcobj