{
  "_id": "6ac4ccc6f511ae58c09a185b",
  "Package": "vpc",
  "Title": "Create Visual Predictive Checks",
  "Version": "1.2.4",
  "Date": "2026-02-10",
  "Authors@R": "c(\nperson(\"Ron\", \"Keizer\", email=\"ron@insight-rx.com\", role=c(\"aut\", \"cre\")),\nperson(\"Bill\", \"Denney\", email=\"wdenney@humanpredictions.com\", role=\"aut\", comment=c(ORCID=\"0000-0002-5759-428X\"))\n)",
  "Maintainer": "Ron Keizer <ron@insight-rx.com>",
  "Description": "Visual predictive checks are a commonly used diagnostic\nplot in pharmacometrics, showing how certain statistics\n(percentiles) for observed data compare to those same\nstatistics for data simulated from a model. The package can\ngenerate VPCs for continuous, categorical, censored, and\n(repeated) time-to-event data.",
  "License": "MIT + file LICENSE",
  "LazyData": "true",
  "URL": "https://github.com/ronkeizer/vpc",
  "RoxygenNote": "7.3.3",
  "Encoding": "UTF-8",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libicu-dev libx11-dev",
  "Repository": "https://ronkeizer.r-universe.dev",
  "Date/Publication": "2026-02-28 17:03:06 UTC",
  "RemoteUrl": "https://github.com/ronkeizer/vpc",
  "RemoteRef": "HEAD",
  "RemoteSha": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-06 10:21:49 UTC",
    "User": "root"
  },
  "Author": "Ron Keizer [aut, cre],\nBill Denney [aut] (ORCID: <https://orcid.org/0000-0002-5759-428X>)",
  "_user": "ronkeizer",
  "_type": "src",
  "_file": "vpc_1.2.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/381f0d1781fe055ed8a36eb52efe79479d8ae413e9c47978cd9dc08f549e574c",
  "_filesize": 830310,
  "_sha256": "381f0d1781fe055ed8a36eb52efe79479d8ae413e9c47978cd9dc08f549e574c",
  "_expires": "2027-01-14T10:26:12.000Z",
  "_created": "2026-10-06T10:21:49.000Z",
  "_published": "2026-10-06T10:26:14.214Z",
  "_jobs": [
    {
      "job": 112221731759,
      "time": 208,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11405191583"
    },
    {
      "job": 112221731802,
      "time": 164,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11406565120"
    },
    {
      "job": 112221731813,
      "time": 205,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11405151562"
    },
    {
      "job": 112221731838,
      "time": 207,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11406805061"
    },
    {
      "job": 112220674181,
      "time": 170,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11405260954"
    },
    {
      "job": 112221731686,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11404980668"
    },
    {
      "job": 112221731724,
      "time": 118,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11405636125"
    },
    {
      "job": 112221731841,
      "time": 117,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11406255032"
    },
    {
      "job": 112221731794,
      "time": 115,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11404459272"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/37448972043",
  "_status": "success",
  "_upstream": "https://github.com/ronkeizer/vpc",
  "_commit": {
    "id": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
    "author": "Matthew Fidler <matthew.fidler@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "add na.rm more places (#110)\n\n",
    "time": 1772298186
  },
  "_maintainer": {
    "name": "Ron Keizer",
    "email": "ron@insight-rx.com",
    "login": "roninsightrx",
    "description": "",
    "uuid": 15008273
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.1.0",
      "role": "Depends"
    },
    {
      "package": "classInt",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "ronkeizer",
  "_selfowned": true,
  "_usedby": 9,
  "_updates": [
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 2
    },
    {
      "week": "2026-09",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.2.4",
      "date": "2026-02-11"
    }
  ],
  "_stars": 37,
  "_contributors": [
    {
      "user": "ronkeizer",
      "count": 361,
      "uuid": 243793
    },
    {
      "user": "billdenney",
      "count": 60,
      "uuid": 10359931
    },
    {
      "user": "dpastoor",
      "count": 35,
      "uuid": 3196313
    },
    {
      "user": "roninsightrx",
      "count": 33,
      "uuid": 15008273
    },
    {
      "user": "sebastianueckert",
      "count": 6,
      "uuid": 3670896
    },
    {
      "user": "dpolhamus",
      "count": 4,
      "uuid": 707490
    },
    {
      "user": "hadley",
      "count": 3,
      "uuid": 4196
    },
    {
      "user": "mattfidler",
      "count": 3,
      "uuid": 514778
    },
    {
      "user": "lionel-",
      "count": 1,
      "uuid": 4465050
    },
    {
      "user": "philipdelff",
      "count": 1,
      "uuid": 5931516
    },
    {
      "user": "rikardn",
      "count": 1,
      "uuid": 12795317
    },
    {
      "user": "smouksassi",
      "count": 1,
      "uuid": 5131281
    },
    {
      "user": "sn248",
      "count": 1,
      "uuid": 15050584
    },
    {
      "user": "tpreijers",
      "count": 1,
      "uuid": 10065891
    }
  ],
  "_userbio": {
    "uuid": 243793,
    "type": "user",
    "name": "Ron Keizer",
    "followers": 108
  },
  "_downloads": {
    "count": 1196,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/vpc"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/ronkeizer/vpc",
  "_searchresults": 411,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/vpc.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/ronkeizer/vpc",
  "_realowner": "ronkeizer",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2017-09-22"
    },
    {
      "version": "1.0.1",
      "date": "2018-01-23"
    },
    {
      "version": "1.1.0",
      "date": "2018-08-27"
    },
    {
      "version": "1.2.0",
      "date": "2020-05-07"
    },
    {
      "version": "1.2.1",
      "date": "2020-06-02"
    },
    {
      "version": "1.2.2",
      "date": "2021-01-11"
    },
    {
      "version": "1.2.4",
      "date": "2026-02-17"
    }
  ],
  "_exports": [
    "add_noise",
    "as_vpcdb",
    "auto_bin",
    "bin_data",
    "create_vpc_theme",
    "ggplot.vpcdb_categorical",
    "ggplot.vpcdb_censored",
    "ggplot.vpcdb_continuous",
    "ggplot.vpcdb_time_to_event",
    "new_vpc_theme",
    "plot_vpc",
    "plot_vpc_helper",
    "quantile_cens",
    "read_table_nm",
    "replace_list_elements",
    "show_default",
    "theme_empty",
    "theme_plain",
    "vpc",
    "vpc_cat",
    "vpc_cens",
    "vpc_tte",
    "vpc_vpc"
  ],
  "_datasets": [
    {
      "name": "rtte_obs_nm",
      "title": "Simulated RTTE data (1x)",
      "object": "rtte_obs_nm",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "t",
        "dv",
        "dt",
        "drug",
        "sex"
      ],
      "rows": 573,
      "table": true,
      "tojson": true
    },
    {
      "name": "rtte_sim_nm",
      "title": "Simulated RTTE data (100x)",
      "object": "rtte_sim_nm",
      "class": [
        "data.frame"
      ],
      "fields": [
        "sim",
        "id",
        "t",
        "dv",
        "rtte",
        "drug",
        "sex"
      ],
      "rows": 2000000,
      "table": true,
      "tojson": true
    },
    {
      "name": "simple_data",
      "title": "A small rich dataset",
      "object": "simple_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_noise",
      "title": "Add noise / residual error to data",
      "topics": [
        "add_noise"
      ]
    },
    {
      "page": "add_sim_index_number",
      "title": "Add sim index number",
      "topics": [
        "add_sim_index_number"
      ]
    },
    {
      "page": "add_stratification",
      "title": "Adds stratification to data set",
      "topics": [
        "add_stratification"
      ]
    },
    {
      "page": "as_vpcdb",
      "title": "Create a vpcdb object, and standardize parameter checking",
      "topics": [
        "as_vpcdb"
      ]
    },
    {
      "page": "auto_bin",
      "title": "Calculate appropriate bin separators for vpc",
      "topics": [
        "auto_bin",
        "auto_bin.data.frame",
        "auto_bin.numeric"
      ]
    },
    {
      "page": "bin_data",
      "title": "Function to bin data based on a vector of bin separators, e.g. for use in VPC",
      "topics": [
        "bin_data"
      ]
    },
    {
      "page": "calc_pred_corr_continuous",
      "title": "Perform prediction-correction",
      "topics": [
        "calc_pred_corr_continuous"
      ]
    },
    {
      "page": "calc_vpc_continuous",
      "title": "Calculate aggregate statistics for simulated and observed VPC data",
      "topics": [
        "calc_vpc_continuous"
      ]
    },
    {
      "page": "check_stratification_columns_available",
      "title": "Check whether stratification columns are available",
      "topics": [
        "check_stratification_columns_available"
      ]
    },
    {
      "page": "compute_kaplan",
      "title": "Compute Kaplan-Meier statistics",
      "topics": [
        "compute_kaplan"
      ]
    },
    {
      "page": "compute_kmmc",
      "title": "Compute KMMC statistics",
      "topics": [
        "compute_kmmc"
      ]
    },
    {
      "page": "create_vpc_theme",
      "title": "Create new vpc theme",
      "topics": [
        "create_vpc_theme"
      ]
    },
    {
      "page": "define_bins",
      "title": "Define bins for many types of data",
      "topics": [
        "define_bins",
        "define_bins_tte"
      ]
    },
    {
      "page": "define_data_columns",
      "title": "Define data column defaults for various softwares",
      "topics": [
        "define_data_columns"
      ]
    },
    {
      "page": "define_loq",
      "title": "Check and standardize limits of quantification",
      "topics": [
        "define_loq"
      ]
    },
    {
      "page": "draw_params_mvr",
      "title": "Draw parameters from multivariate distribution",
      "topics": [
        "draw_params_mvr"
      ]
    },
    {
      "page": "filter_dv",
      "title": "Remove values that are not observed values from data",
      "topics": [
        "filter_dv"
      ]
    },
    {
      "page": "format_vpc_input_data",
      "title": "Prepare VPC data for future calculations by standardizing column names and modifying the input data based on the limits of quantification, stratification, and logarithmic values.",
      "topics": [
        "format_vpc_input_data",
        "format_vpc_input_data_tte"
      ]
    },
    {
      "page": "ggplot.vpcdb_continuous",
      "title": "Create a ggplot for each vpcdb type",
      "topics": [
        "ggplot.vpcdb_categorical",
        "ggplot.vpcdb_censored",
        "ggplot.vpcdb_continuous",
        "ggplot.vpcdb_time_to_event"
      ]
    },
    {
      "page": "ggplot2_label_variable",
      "title": "Function copied from ggplot2:::label_variable, with addition of ` Copied here since CRAN does not like use of `:::`.",
      "topics": [
        "ggplot2_label_variable"
      ]
    },
    {
      "page": "label_vpc_tte",
      "title": "Custom ggplot2 labeller function.",
      "topics": [
        "label_vpc_tte"
      ]
    },
    {
      "page": "loq_frac",
      "title": "Calculate fraction of observations below lloq / above uloq",
      "topics": [
        "loq_frac"
      ]
    },
    {
      "page": "new_vpc_theme",
      "title": "Create a customized VPC theme",
      "topics": [
        "new_vpc_theme"
      ]
    },
    {
      "page": "pk_iv_1cmt",
      "title": "Simulate PK data from a 1-compartment iv model",
      "topics": [
        "pk_iv_1cmt"
      ]
    },
    {
      "page": "pk_oral_1cmt",
      "title": "Simulate PK data from a 1-compartment oral model",
      "topics": [
        "pk_oral_1cmt"
      ]
    },
    {
      "page": "plot_vpc",
      "title": "VPC plotting function",
      "topics": [
        "plot_vpc"
      ]
    },
    {
      "page": "pred_correction_core",
      "title": "Core prediction correction function",
      "topics": [
        "pred_correction_core"
      ]
    },
    {
      "page": "quantile_cens",
      "title": "Calculate quantiles respecting the censored data",
      "topics": [
        "quantile_cens"
      ]
    },
    {
      "page": "read_table_nm",
      "title": "NONMEM output table import function",
      "topics": [
        "read_table_nm"
      ]
    },
    {
      "page": "read_vpc",
      "title": "Read in VPC data",
      "topics": [
        "read_vpc"
      ]
    },
    {
      "page": "replace_list_elements",
      "title": "Replace list elements by name",
      "topics": [
        "replace_list_elements"
      ]
    },
    {
      "page": "rtte_obs_nm",
      "title": "Simulated RTTE data (1x)",
      "topics": [
        "rtte_obs_nm"
      ]
    },
    {
      "page": "rtte_sim_nm",
      "title": "Simulated RTTE data (100x)",
      "topics": [
        "rtte_sim_nm"
      ]
    },
    {
      "page": "show_default",
      "title": "Defaults for show argument with various endpoint types",
      "topics": [
        "show_default"
      ]
    },
    {
      "page": "simple_data",
      "title": "A small rich dataset",
      "topics": [
        "simple_data"
      ]
    },
    {
      "page": "standardize_column",
      "title": "Confirm that a column is in the data, and rename data to prepare that column for later use.",
      "topics": [
        "standardize_column"
      ]
    },
    {
      "page": "theme_empty",
      "title": "Empty ggplot2 theme",
      "topics": [
        "theme_empty"
      ]
    },
    {
      "page": "theme_plain",
      "title": "A nicer default theme for ggplot2",
      "topics": [
        "theme_plain"
      ]
    },
    {
      "page": "triangle_to_full",
      "title": "Lower to full triangle",
      "topics": [
        "triangle_to_full"
      ]
    },
    {
      "page": "vpc",
      "title": "VPC function",
      "topics": [
        "vpc",
        "vpc.default",
        "vpc_vpc"
      ]
    },
    {
      "page": "vpc_cat",
      "title": "VPC function for categorical",
      "topics": [
        "vpc_cat"
      ]
    },
    {
      "page": "vpc_cens",
      "title": "VPC function for left- or right-censored data (e.g. BLOQ data)",
      "topics": [
        "vpc_cens"
      ]
    },
    {
      "page": "vpc_ggplot",
      "title": "A collection of internal ggplot helpers for VPC plotting",
      "topics": [
        "facet_continuous",
        "facet_tte",
        "geom_bin_sep",
        "geom_hline_loq",
        "geom_obs_cens_dat_tte",
        "geom_obs_ci_continuous",
        "geom_obs_ci_tte",
        "geom_obs_dv_continuous",
        "geom_obs_km",
        "geom_obs_median_continuous",
        "geom_sim_km",
        "geom_sim_median_ci_continuous",
        "geom_sim_median_continuous",
        "geom_sim_median_tte",
        "geom_sim_pi_as_area_continuous",
        "geom_sim_pi_as_area_tte",
        "geom_sim_pi_ci_continuous",
        "geom_sim_pi_continuous",
        "guides_stratify_color",
        "scale_x_log10_vpc",
        "scale_y_log10_vpc",
        "vpc_ggplot"
      ]
    },
    {
      "page": "vpc_tte",
      "title": "VPC function for time-to-event (survival) data",
      "topics": [
        "vpc_tte"
      ]
    }
  ],
  "_readme": "https://github.com/ronkeizer/vpc/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "class",
    "classInt",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "dplyr",
    "e1071",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "hms",
    "isoband",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "readr",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr"
  ],
  "_score": 9.458294355836625,
  "_indexed": true,
  "_nocasepkg": "vpc",
  "_universes": [
    "ronkeizer",
    "roninsightrx"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.4",
      "date": "2026-10-06T10:24:39.000Z",
      "distro": "resolute",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "https://r2.ropensci.org/2596f4325b95e063785963a5060b22f4b3dd26c1f4bea8fa6ec51cce5dcd25c9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/37448972043"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2.4",
      "date": "2026-10-06T10:24:02.000Z",
      "distro": "resolute",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "https://r2.ropensci.org/3eab1ff9636994882bb552ed3da84c095e046aab2ab07455a202f7a7f335e000",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/37448972043"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.4",
      "date": "2026-10-06T10:24:26.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "https://r2.ropensci.org/9637c7fb475f48130d09bd85699cad446c8833b065d9c6991e4ced55ed9a56dc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/37448972043"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2.4",
      "date": "2026-10-06T10:24:17.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "https://r2.ropensci.org/597efd1b813d6fbbd158d9a3a7bfc2f87f57ca4e447b146ceb19a77ac86fbb79",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/37448972043"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.4",
      "date": "2026-10-06T10:23:53.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "https://r2.ropensci.org/0530003765ece3f817b2caa117182cbb4a0e4423f5b116cfbd0287ca619d8e25",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/37448972043"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.4",
      "date": "2026-10-06T10:23:13.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "https://r2.ropensci.org/611eb1a967a34b07f8c3cf98733e73878bd2966b5a821300192f9c9a346e378e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/37448972043"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.4",
      "date": "2026-10-06T10:23:13.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "https://r2.ropensci.org/5738c46f7a8a6eb05fc844e72e63e6c2f89ee09ab049fdbc3ce5bb968ed79a4d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/37448972043"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2.4",
      "date": "2026-10-06T10:23:07.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "https://r2.ropensci.org/0eb703833b9340442c9b547b856dbd556d46852fdd02fb63d7b02e588aca0a66",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/37448972043"
    }
  ]
}