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

basic.gof

Basic goodness-of-fit plots, for Xpose 4


Description

This is a compound plot consisting of plots of observations (DV) vs population predictions (PRED), observations (DV) vs individual predictions (IPRED), absolute individual weighted residuals (|IWRES|) vs IPRED, and weighted population residuals (CWRES) vs independent variable (IDV), a specific function in Xpose 4. WRES are also supported. It is a wrapper encapsulating arguments to the dv.vs.pred, dv.vs.ipred, absval.iwres.vs.ipred and wres.vs.idv functions.

Usage

basic.gof(object, force.wres = FALSE, main = "Default", use.log = FALSE, ...)

Arguments

object

An xpose.data object.

force.wres

Should the plots use WRES? Values can be TRUE/FALSE. Otherwise the CWRES are used if present.

main

The title of the plot. If "Default" then a default title is plotted. Otherwise the value should be a string like "my title" or NULL for no plot title.

use.log

Should we use log transformations in the plots?

...

Other arguments passed to xpose.plot.default.

Details

Four basic goodness-of-fit plots are 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 for details.

basic.gof.cwres is just a wrapper for basic.gof with use.cwres=TRUE.

Value

Returns a compound plot comprising plots of observations (DV) vs population predictions (PRED), DV vs individual predictions (IPRED), absolute individual weighted residuals (|IWRES|) vs IPRED, and weighted populations residuals (WRES) vs the independent variable (IDV).

Author(s)

E. Niclas Jonsson, Mats Karlsson, Andrew Hooker & Justin Wilkins

See Also

Examples

basic.gof(simpraz.xpdb)

xpose4

Diagnostics for Nonlinear Mixed-Effect Models

v4.7.1
LGPL (>= 3)
Authors
Andrew C. Hooker [aut, cre, cph], Mats O. Karlsson [aut, cph], Justin J. Wilkins [aut], E. Niclas Jonsson [aut, trl, cph], Ron Keizer [ctb] (functionality for bootstrap of GAM and SCM)
Initial release

We don't support your browser anymore

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