plotnpde {npde} | R Documentation |
Plots 4 graphs to evaluate the shape of the distribution of the normalised prediction distribution errors (npde)
plotnpde(xobs, npde, ypred)
xobs |
the vector of the observed independent variable (X) |
npde |
the vector of normalised prediction distribution errors (returned
by the functions npde or autonpde with the option output=TRUE) |
ypred |
a vector giving the mean of the predicted distribution for each observation |
Four graphs are produced: \itema quantile-quantile plotplot of the npde versus the corresponding quantiles of a normal distribution, with the line y=x overlayed. \itema histogram of the npdethe shape of the normal distribution is also shown \itemtwo scatterplots of the npdea 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 90
None
Emmanuelle Comets <emmanuelle.comets@bichat.inserm.fr>
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.
#Computing npde data(theopp) data(simtheopp) x<-autonpde(theopp,simtheopp,1,3,4,boolsave=FALSE) x$npde #Using the npde in object x for the plot plotnpde(x$obsdat$xobs,x$npde,x$ypred)