asVPC.binW {asVPC} | R Documentation |
calculate percentiles of original data using bin-related weight percentiles of simulated data with corresponding confidence interval
asVPC.binW(orig.data, sim.data, n.timebin, n.sim, n.hist, q.list = c(0.05, 0.5, 0.95), conf.level = 0.95, X.name = "TIME", Y.name = "DV", opt.DV.point = FALSE, weight.flag = FALSE, Y.min = NULL, Y.max = NULL, only.med = FALSE, plot.flag = TRUE)
orig.data |
the original data for model fitting |
sim.data |
the simulated data from NONMEM |
n.timebin |
the number of bin in X axis |
n.sim |
the number of simulation in the simulated data |
n.hist |
the number of shifted |
q.list |
numeric vector of probabilities with values in [0,1] |
conf.level |
confidence level of the interval |
X.name |
the name of X variable in the original scatter plot |
Y.name |
the name of Y variable in the original scatter plot |
opt.DV.point |
option to put data point in the plot |
weight.flag |
option to use weight in average shifted calculation |
Y.min |
minimum of Y range in the plot |
Y.max |
maximum of Y range in the plot |
only.med |
option to use only median |
plot.flag |
TRUE: drawing plot / FALSE: generate data for drawing plot |
plot or the values to draw plot
Eun-Kyung Lee lee.eunk@gmail.com
new paper...
data(origdata) data(simdata) asVPC.binW(origdata,simdata,n.timebin=10, n.sim=100,n.hist=3)