xbinning function

Internal functions used to produce prediction intervals (from the npde package)

Internal functions used to produce prediction intervals (from the npde package)

Functions used by plot functions to define the boundaries of the bins on the X-axis

xbinning(xvec, plot.opt, verbose = FALSE)

Arguments

  • xvec: a vector of values for the X-axis of the plot
  • plot.opt: graphical options
  • verbose: boolean (defaults to FALSE). If TRUE, a table showing how the binning was performed

Returns

a list with 3 elements, xgrp (the number of the bin associated with each element of xvec), xcent (a named vector containing the mean of the elements of xvec contained in each bin; the name of the bin is the interval), and xgroup (a vector with the group associated to each element of xvec after binning) If verbose is TRUE, a table showing the bins is shown, giving the interval of xvec associated with each bin, the mean value of xvec in each bin, and the number of observations

Details

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

References

K. Brendel, E. Comets, C. Laffont, C. Laveille, and F. Mentre. Metrics for external model evaluation with an application to the population pharmacokinetics of gliclazide. Pharmaceutical Research, 23:2036--49, 2006.

See Also

npde, autonpde

Author(s)

Emmanuelle Comets emmanuelle.comets@bichat.inserm.fr

  • Maintainer: Emmanuelle Comets
  • License: GPL (>= 2)
  • Last published: 2024-03-05

Useful links