View source: R/calc_vpc_continuous.R
calc_vpc_continuous | R Documentation |
Calculate aggregate statistics for simulated and observed VPC data
calc_vpc_continuous(sim, obs, loq, pi, ci, stratify, bins, bin_mid, verbose)
sim |
this is usually a data.frame with observed data, containing the independent and dependent variable, a column indicating the individual, and possibly covariates. E.g. load in from NONMEM using read_table_nm. However it can also be an object like a nlmixr or xpose object |
obs |
a data.frame with observed data, containing the independent and dependent variable, a column indicating the individual, and possibly covariates. E.g. load in from NONMEM using read_table_nm |
loq |
The list output from |
pi |
simulated prediction interval to plot. Default is c(0.05, 0.95), |
ci |
confidence interval to plot. Default is (0.05, 0.95) |
stratify |
character vector of stratification variables. |
bins |
either "density", "time", or "data", "none", or one of the approaches available in classInterval() such as "jenks" (default) or "pretty", or a numeric vector specifying the bin separators. |
bin_mid |
either "mean" for the mean of all timepoints (default) or "middle" to use the average of the bin boundaries. |
verbose |
show debugging information (TRUE or FALSE) |
A list with "vpc_dat" and "aggr_obs"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.