Description Usage Arguments Value Note Author(s)
A faster version of previous VPC_data, also allows user defined quantiles.
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)
|
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. |
A list containing all necessary VPC parameters to be used in plot_std_VPC function.
This function has not been designed for bins containing zero points, and may fail or produce strange results if zero points are detected.
Aaron Hayman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.