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

cat.pc

Categorical (visual) predictive check.


Description

Categorical (visual) predictive check plots.

Usage

cat.pc(
  object,
  dv = xvardef("dv", object),
  idv = xvardef("idv", object),
  level.to.plot = NULL,
  subset = NULL,
  histo = T,
  median.line = F,
  PI.lines = F,
  xlb = if (histo) {     paste("Proportion of ", dv) } else {     paste(idv) },
  ylb = if (histo) {     paste("Percent of Total") } else {    
    paste("Proportion of Total") },
  main = xpose.create.title.text(NULL, dv, "Predictive check of", object, subset =
    subset, ...),
  strip = "Default",
  ...
)

Arguments

object

Xpose data object.

dv

The dependent variable (e.g. "DV" or "CP".)

idv

The independent variable (e.g. "TIME".)

level.to.plot

The levels to plot.

subset

Subset of data.

histo

If FALSE then a VPC is created, given that idv is defined.

median.line

Make a median line?

PI.lines

Make prediction interval lines?

xlb

Label for x axis.

ylb

label for y axis.

main

Main title.

strip

Defining how the strips should appear in the conditioning plots.

...

Extra arguments passed to the function.

Author(s)

Andrew C. Hooker

See Also

Examples

## Not run: 
## read in table files
runno <- 45
xpdb <- xpose.data(runno)

## create proportion (visual) predictive check
cat.pc(xpdb,idv=NULL)
cat.pc(xpdb,idv="DOSE")
cat.pc(xpdb,idv="DOSE",histo=F)
cat.pc(xpdb,idv="TIME",histo=T,level.to.plot=1)

## End(Not run)

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.