Learn R Programming

DoseFinding (version 0.6-3)

plot.MCPMod: Plot MCPMod model fits

Description

The function plots the model(s) used for dose estimation. When there are no covariates in the model the full dose-response model is displayed (possibly including the dose-response data). When there are covariates in the model the plot method displays the effect curves. If it is desired to have a more detailed plot, it might be better to extract the fitted dose-response models from the MCPMod object, and further work with them (see also the plot method for DRMod objects plot.DRMod).

Usage

## S3 method for class '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 deter
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
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, plot.DRMod