panel.modelfit: Panel function for Residual Variability Plots

View source: R/panel.modelfit.r

panel.modelfitR Documentation

Panel function for Residual Variability Plots

Description

Panel function to plot DV, PRED, IPRED overlays for individual profiles

Usage

panel.modelfit(
  x,
  y,
  groups,
  subscripts,
  logX = FALSE,
  logY = FALSE,
  type.obs = "b",
  pred.lty = "solid",
  ipred.lty = "solid",
  ...
)

Arguments

x, y

numeric vectors x and y

groups

see xyplot

subscripts

see xyplot

logX

log the x-axis (defaults to F)

logY

log the y-axis (defaults to F)

type.obs

line type for observed data (defaults to 'b' for both lines and points)

pred.lty

line type for population predictions

ipred.lty

line type for individual predictions

...

passed to llines()

Value

Lattice panel output (invisible)

Examples

library(Hmisc)
library(lattice)
out = get.xpose.tables('example1',getOption('qpExampleDir'))
out$EVID = 0
trellis.strip.color()
xyplot(Cbind(CONC,PRED,IPRED,EVID) ~ TIME
       , groups = ID
       , data = subset(out)
       , scales = list(x = list(relation = 'free'),y = list(log = 10))
       , panel = panel.modelfit
       , logY = TRUE
       , yscale.components = yscale.components.log10
)

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.