Learn R Programming

xpose4 (version 4.5.3)

cwres.wres.vs.idv: Weighted residuals (WRES) and conditional WRES (CWRES) plotted against the independent variable (IDV) or the population predictions (PRED) for Xpose 4

Description

This function graphically compares WRES and CWRES as plotted against the independent variable or the popultation predictions.

Usage

cwres.wres.vs.idv(object,
           ylb  = "Residuals",
           abline = c(0,0),
           smooth=TRUE,
           scales=list(),
           ...)

cwres.wres.vs.pred(object, ylb = "Residuals", abline = c(0,0), smooth=TRUE, scales=list(), ...)

Arguments

object

An xpose.data object.

ylb

A string giving the label for the y-axis. NULL if none.

abline

Vector of arguments to the panel.abline function. No abline is drawn if NULL.

smooth

A NULL value indicates that no superposed line should be added to the graph. If TRUE then a smooth of the data will be superimposed.

scales

scales is pased to xpose.plot.default

Other arguments passed to link[lattice]{xyplot}.

Value

A compound xyplot.

Details

This function creates plots of WRES and CWRES, presented side-by-side for comparison.

Conditional weighted residuals (CWRES) require some extra steps to calculate. See compute.cwres for details.

A wide array of extra options controlling xyplots are available. See xpose.plot.default and xpose.panel.default for details.

See Also

xpose.plot.default, xpose.panel.default, xyplot, xpose.prefs-class, xpose.data-class, compute.cwres

Examples

Run this code

## We expect to find the required NONMEM run, table and data files for run
## 5 in the current working directory 
xpdb5 <- xpose.data(5)


## Here we load the example xpose database 
data(simpraz.xpdb)
xpdb <- simpraz.xpdb

cwres.wres.vs.idv(xpdb)

Run the code above in your browser using DataLab