plot.NpdeRes: Plots a NpdeRes object

View source: R/plotNpde-methods.R

plot.NpdeResR Documentation

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 class 'NpdeRes'
plot(x, y, ...)

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

Value

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

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


data(theopp)


npde documentation built on May 29, 2024, 9:59 a.m.