computenpde {npde} | R Documentation |
Functions used by npde
and autonpde
to compute normalised
prediction distribution errors (not intended for the end-user).
computenpde(tabobs, tabsim, verbose)
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) |
verbose |
a boolean (T if messages are to be printed as each subject is processed, F otherwise) |
These functions are normally not called by the end-user.
ydsim |
the vector of simulated dependent variable (Y), decorrelated |
ydobs |
the vector of observed dependent variable (Y), decorrelated |
xerr |
an integer code to keep track of errors during the computation;
after a successful computation the value of xerr should be 0. A value
of 1 or 2 signals errors during the computation. |
npde |
the vector of normalised prediction distribution errors |
ypred |
a vector giving the mean of the predicted distribution for each observation |
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.