Learn R Programming

⚠️There's a newer version (1.2.2) of this package.Take me there.

vpc (version 1.1.0)

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,493

Version

1.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Ron Keizer

Last Published

August 27th, 2018

Functions in vpc (1.1.0)

compute_kaplan

Compute Kaplan-Meier statistics
simple_data

A small rich dataset
loq_perc

Calculate percentiles below / above lloq / uloq
new_vpc_theme

Create a customized VPC theme
create_vpc_theme

Create new vpc theme
bin_data

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

A nicer default theme for ggplot2
theme_empty

Empty ggplot2 theme
pk_iv_1cmt

Simulate PK data from a 1-compartment iv model
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)
define_data_columns

Define data column defaults for various softwares
check_stratification_columns_available

Check whether stratification columns are available
replace_list_elements

Replace list elements by name
pk_oral_1cmt

Simulate PK data from a 1-compartment oral model
plot_vpc

VPC plotting function
add_noise

Add noise / residual error to data
rtte_obs_nm

Simulated RTTE data (1x)
vpc-package

VPC package
add_sim_index_number

Add sim index number
rtte_sim_nm

Simulated RTTE data (100x)
vpc

VPC function
show_default

Defaults for show argument
quantile_cens

Calculate quantiles respecting the censored data
vpc_tte

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

NONMEM output table import function
sim_data

Simulate data based on a model and parameter distributions
show_default_tte

Defaults for show argument for TTE VPC
add_stratification

Adds stratification to data set
auto_bin

Calculate appropriate bin separators for vpc
compute_kmmc

Compute KMMC statistics
draw_params_mvr

Draw parameters from multivariate distribution