Learn R Programming

npde (version 3.5)

plot.NpdeRes: Plots a NpdeRes object

Description

Plots distribution and scatterplots for the npde in a NpdeRes object. Users are advised to use the plot() function on the NpdeObject object resulting from a call to npde() or autonpde() instead of trying to plot only the results element of this object.

Usage

# S3 method for NpdeRes
plot(x, y, ...)

Value

a ggplot object or a list of ggplot objects (grobs)

Arguments

x

a NpdeRes object

Details

Four graphs are produced:

a quantile-quantile plot

plot of the npde versus the corresponding quantiles of a normal distribution, with the line y=x overlayed.

a histogram of the npde

the shape of the normal distribution is also shown

two scatterplots of the npde

a plot of the npde versus the independent variable X and a plot of the npde versus the empirical mean of the predicted distribution; for these last two graphs, we plot the lines corresponding to y=0 and to the 5% and 95% critical value of the normal distribution delimiting a 90% prediction interval for the npde

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

set.plotoptions

Examples

Run this code
# \donttest{
data(theopp)
# }

Run the code above in your browser using DataLab