calc_std_VPC: Fast calculation of standard VPC.

Description Usage Arguments Value Note Author(s)

View source: R/calc_std_VPC.R

Description

A faster version of previous VPC_data, also allows user defined quantiles.

Usage

1
2
3
calc_std_VPC(exp_data, sim_data, use, bins, dv_col, time_col,
  quantiles = c(0.1, 0.5, 0.9), lower.bound = 0, confidence.interval = 95,
  min_bin_width = 1, T0 = 0)

Arguments

exp_data

data frame containing experimental data.

sim_data

data frame containing all simulated data.

use

logic vector of rows to use from the exp_data (must match the sim data too).

bins

vector of limits of the time bins.

dv_col

name of column containing DV (or IPRED), for both exp_data and sim_data.

time_col

name of column containing independent variable (e.g. TAD or TIME), for both exp_data and sim_data.

quantiles

vector of quantiles to find between zero and one.

lower.bound

numeric. Lower limit of all DV (-Inf will work).

confidence.interval

numeric. Percentage size of confidence interval calculated around each quantile in simulated data.

min_bin_width

numeric. Width of the smallest possible unrestricted bin (bins will be restricted in width by neighbouring bins).

T0

numeric. Start time.

Value

A list containing all necessary VPC parameters to be used in plot_std_VPC function.

Note

This function has not been designed for bins containing zero points, and may fail or produce strange results if zero points are detected.

Author(s)

Aaron Hayman


jgrevel/BAST1-R-Library documentation built on May 21, 2019, 10:11 a.m.