computepd {npde} | R Documentation |
Functions used by npde
and autonpde
to compute prediction
discrepancies (not intended for the end-user).
computepd(tabobs, tabsim, calc.npde)
tabobs |
observed data, a dataframe containing 3 columns (id=patient ID, xobs=independent variable (X), yobs=dependent variable (Y) |
tabsim |
simulated data, a dataframe containing 4 columns (idsim=patient ID, irsim=integer identifying the replicate; xsim=independent variable (X), ysim=dependent variable (Y) |
calc.npde |
a boolean (T if npde are computed, F otherwise); used to decide whether the function should compute ypred |
These functions are normally not called by the end-user.
pd |
the vector of prediction discrepancies |
ypred |
a vector giving the mean of the predicted distribution for each observation, if calc.npde=F (NA otherwise) |
Emmanuelle Comets <emmanuelle.comets@bichat.inserm.fr>
K. Brendel, E. Comets, C. Laffont, C. Laveille, and F. MentrĂ©. Metrics for external model evaluation with an application to the population pharmacokinetics of gliclazide. Pharmaceutical Research, 23:2036–49, 2006.