{
  "_id": "6a266cc9794753ddbc3e8c06",
  "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-06-08 07:13:16 UTC",
    "User": "root"
  },
  "Author": "Ron Keizer [aut, cre],\nBill Denney [aut] (ORCID: <https://orcid.org/0000-0002-5759-428X>)",
  "MD5sum": "dead0dc5be4390e060bef7bb8c51efef",
  "_user": "ronkeizer",
  "_type": "src",
  "_file": "vpc_1.2.4.tar.gz",
  "_fileid": "f5b3cf02bda3413ac9fa7324f411470851194a76c1f48d1f940d76c8ff32c9ab",
  "_filesize": 829346,
  "_sha256": "f5b3cf02bda3413ac9fa7324f411470851194a76c1f48d1f940d76c8ff32c9ab",
  "_created": "2026-06-08T07:13:16.000Z",
  "_published": "2026-06-08T07:18:33.842Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80040785036,
      "time": 172,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7473721284"
    },
    {
      "job": 80040785047,
      "time": 168,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7473719843"
    },
    {
      "job": 80040785045,
      "time": 221,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7473726000"
    },
    {
      "job": 80040785046,
      "time": 57,
      "config": "macos-release-arm64",
      "r": "",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80040183007,
      "time": 257,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7473674643"
    },
    {
      "job": 80040785050,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7473706646"
    },
    {
      "job": 80040785031,
      "time": 132,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7473710238"
    },
    {
      "job": 80040785049,
      "time": 129,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7473709518"
    },
    {
      "job": 80040785029,
      "time": 144,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7473714144"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/27121687478",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 15008273
  },
  "_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": 36,
  "_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"
  },
  "_downloads": {
    "count": 1288,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/vpc"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/ronkeizer/vpc",
  "_searchresults": 392,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/vpc.html",
    "manual.pdf"
  ],
  "_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"
      ]
    }
  ],
  "_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": 8.759054056716687,
  "_indexed": true,
  "_nocasepkg": "vpc",
  "_universes": [
    "ronkeizer",
    "roninsightrx"
  ],
  "_binaries": [
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.4",
      "date": "2026-05-09T08:56:20.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "a469956cc72e2f1a5f8780f27349df3d43e8b22b61aee5971b17e2837079ad97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/25596967300"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.4",
      "date": "2026-06-08T07:16:27.000Z",
      "distro": "noble",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "3a5de9bd70a01a5a2f30fede29f303f24a4acf6fb850fed1dd7411f77bd51a3b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/27121687478"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.4",
      "date": "2026-06-08T07:16:20.000Z",
      "distro": "noble",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "c0bbe141f0bfa4ec0bb879450ffa871f1d98d46431b3e0248c22cdd9e24a40aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/27121687478"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.4",
      "date": "2026-06-08T07:17:00.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "276f277d3c8302f6924466c5524d15978b926b4d0207b05be488de928f4f4263",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/27121687478"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.4",
      "date": "2026-06-08T07:16:29.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "be06e9f4f8480a20aa216936617f264f90ebb3d21d8a6ca78b67818d58f758d5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/27121687478"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.4",
      "date": "2026-06-08T07:15:38.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "b36d7904b07d10d66bc348ab5c5b7ab1ce9164159b6244eef1e483d2b56beeed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/27121687478"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.4",
      "date": "2026-06-08T07:15:37.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "3d5b9df9b50c454f7b4950317929858b99f655e58d3c448bb0d390cd500d31db",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/27121687478"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.4",
      "date": "2026-06-08T07:15:47.000Z",
      "commit": "b1d6a72217552a45d321ace2b7fa40af74eca5fa",
      "fileid": "bad2e281533cec315e9c31d9791c733d901d241749c995ffa73daee81f170800",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ronkeizer/actions/runs/27121687478"
    }
  ]
}