Learn R Programming

MCPMod (version 1.0-10.1)

plot.MCPMod: Plot MCPMod model fits

Description

The function plots the model(s) used for dose estimation.

Usage

# S3 method for MCPMod
plot(x, complData = FALSE, CI = FALSE, clinRel = FALSE, doseEst = FALSE,
     gamma = NULL, models = "all", nrDoseGam = 1,
     colors = c("black", "blue", "black", "gray", "blue"),
     uGrad = NULL, ...)

Arguments

x

A MCPMod object.

complData

Logical indicating whether complete data set or group means should be plotted.

CI

Logical indicating whether a confidence interval should be plotted along the model fit(s).

clinRel

Logical indicating, whether clinical relevance threshold should be included in plot.

doseEst

Logical determining whether dose estimate should be included in plot.

gamma

Numeric giving the value for the 1-2*gamma pointwise CI around the predicted mean. if equal to NULL the value determined in the MCPMod call is used. In case a vector of gamma values was used nrDoseGam determines which is used.

models

Character vector determining, which of the used models should be plotted (only available if model averaging was used)

nrDoseGam

In case a vector is specified for dePar in the MCPMod function (and gamma in the plot.MCPMod function is NULL), nrDoseGam determines which of these values should be used for the conf. interval and the dose estimate (if doseEst = T).

colors

Vector of length 5 with the names of the colors for: predictions, CI, data, clinical relevance threshold, dose estimator

uGrad

If a user defined model has been used for dose estimation, the gradient function needs to be handed over via uGrad.

Additional arguments to xyplot.

See Also

MCPMod