Learn R Programming

vpc (version 1.2.2)

Create Visual Predictive Checks

Description

Visual predictive checks are a commonly used diagnostic plot in pharmacometrics, showing how certain statistics (percentiles) for observed data compare to those same statistics for data simulated from a model. The package can generate VPCs for continuous, categorical, censored, and (repeated) time-to-event data.

Copy Link

Version

Install

install.packages('vpc')

Monthly Downloads

1,399

Version

1.2.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Ron Keizer

Last Published

January 11th, 2021

Functions in vpc (1.2.2)

auto_bin

Calculate appropriate bin separators for vpc
add_sim_index_number

Add sim index number
add_stratification

Adds stratification to data set
bin_data

Function to bin data based on a vector of bin separators, e.g. for use in VPC
create_vpc_theme

Create new vpc theme
compute_kaplan

Compute Kaplan-Meier statistics
compute_kmmc

Compute KMMC statistics
define_data_columns

Define data column defaults for various softwares
add_noise

Add noise / residual error to data
check_stratification_columns_available

Check whether stratification columns are available
draw_params_mvr

Draw parameters from multivariate distribution
quantile_cens

Calculate quantiles respecting the censored data
pk_iv_1cmt

Simulate PK data from a 1-compartment iv model
theme_empty

Empty ggplot2 theme
new_vpc_theme

Create a customized VPC theme
simple_data

A small rich dataset
pk_oral_1cmt

Simulate PK data from a 1-compartment oral model
plot_vpc

VPC plotting function
show_default

Defaults for show argument
rtte_sim_nm

Simulated RTTE data (100x)
loq_perc

Calculate percentiles below / above lloq / uloq
vpc-package

VPC package
vpc

VPC function
vpc_tte

VPC function for time-to-event (survival) data
rtte_obs_nm

Simulated RTTE data (1x)
sim_data

Simulate data based on a model and parameter distributions
replace_list_elements

Replace list elements by name
show_default_tte

Defaults for show argument for TTE VPC
theme_plain

A nicer default theme for ggplot2
read_table_nm

NONMEM output table import function
vpc_cat

VPC function for categorical
triangle_to_full

Lower to full triangle
vpc_cens

VPC function for left- or right-censored data (e.g. BLOQ data)