Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 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

Examples

data(theopp)

npde

Normalised Prediction Distribution Errors for Nonlinear Mixed-Effect Models

v3.1
GPL (>= 2)
Authors
Emmanuelle Comets [aut, cre] (<https://orcid.org/0000-0002-9150-9886>), Karl Brendel [ctb], Thi Huyen Tram Nguyen [ctb], Romain Leroux [ctb], France Mentre [ctb]
Initial release
2021-04-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.