computenpde {npde}R Documentation

Internal functions used to compute normalised prediction distribution errors

Description

Functions used by npde and autonpde to compute normalised prediction distribution errors (not intended for the end-user).

Usage

computenpde(tabobs, tabsim, verbose)

Arguments

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)

Details

These functions are normally not called by the end-user.

Value

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

Author(s)

Emmanuelle Comets <emmanuelle.comets@bichat.inserm.fr>

References

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.

See Also

npde, autonpde


[Package npde version 1.2 Index]