computepd {npde}R Documentation

Internal functions used to compute prediction discrepancies

Description

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

Usage

computepd(tabobs, tabsim, calc.npde)

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)
calc.npde a boolean (T if npde are computed, F otherwise); used to decide whether the function should compute ypred

Details

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

Value

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)

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]