Usage
## S3 method for class 'effect':
print(x, type=c("response", "link"), ...)
## S3 method for class 'effect.list':
print(x, ...)
## S3 method for class 'x, ...':
print}{summary.effectundefined
## S3 method for class 'effect':
summary(object, type=c("response", "link"), ...)
## S3 method for class 'effect.list':
summary(object, ...)
## S3 method for class 'effect':
plot(x, x.var=which.max(levels),
z.var=which.min(levels), multiline=is.null(x$se), rug=TRUE, xlab,
ylab=x$response, main=paste(effect, "effect plot"),
colors=palette(), symbols=1:10, lines=1:10, cex=1.5, ylim,
factor.names=TRUE, type=c("response", "link"), ticks=list(at=NULL, n=5),
alternating=TRUE, rescale.axis=TRUE, ...)
## S3 method for class 'effect.list':
plot(x, selection, ...)
Arguments
x
an object of type "effect"
, "summary.effect"
, or "effect.list"
,
as appropriate.
object
an object of type "effect"
or "effect.list"
,
as appropriate.
type
if "response"
(the default), effects are printed
or the vertical axis is labelled on the scale of the response
variable; if "link"
, effects are printed
or the vertical axis labelled on the scale of the linear pre
x.var
the index (number) of the covariate or factor to place on the
horizontal axis of each panel of the effect plot. The default is the
predictor with the largest number of levels or values.
z.var
the index (number) of the covariate or factor for which
individual lines are to be drawn in each panel of the effect plot. The default is the
predictor with the smallest number of levels or values. This argument is only
used if multi
multiline
if TRUE
, each panel of the display represents combinations
of values of two predictors, with one predictor (corresponding to x.var
)
on the horzontal axis, and the other (corresponding to z.var
) used to defi
rug
if TRUE
, the default, a rug plot is shown giving the marginal
distribution of the predictor on the horizontal axis, if this predictor is
a covariate.
xlab
the label for the horizontal axis of the effect plot; if missing, the
function will use the name of the predictor on the horizontal axis.
ylab
the label for the vertical axis of the effect plot; the default is the
response variable for the model from which the effect was computed.
main
the title for the plot, printed at the top; the default title is constructed from the
name of the effect.
colors
colors[1]
is used to plot effects, colors[2]
to plot
confidence bands. In a mulitline plot, the successive colors
correspond
to the levels of the z.var
covariate or factor.
symbols, lines
corresponding to the levels of the z.var
covariate
or factor on a multiline plot. These arguments are used only if multiline = TRUE
;
in this case a legend is drawn at the top of the display.
cex
character expansion for plotted symbols; default is 1
.
ylim
2-element vector containing the lower and upper limits of the vertical axes;
if NULL
, the default, then the vertical axes are scaled from the data.
factor.names
a logical value, default TRUE
, that controls the inclusion of
factor names in conditioning-variable labels.
ticks
a two-item list controlling the placement of tick marks on the vertical axis,
with elements at
and n
. If at=NULL
(the default), the program
attempts to find `nice' locations for the ticks, and the value of
alternating
if TRUE
(the default), the tick labels alternate by panels in
multi-panel displays from left to right and top to bottom; if FALSE
, tick labels
appear at the bottom and on the left.
rescale.axis
if TRUE
(the default), the tick marks on the vertical axis
are labelled on the response scale (e.g., the probability scale for effects computed on
the logit scale for a binomial GLM).
selection
the optional index (number) or quoted name of the effect in an effect
list to be plotted; if not supplied, a menu of high-order terms is presented.
...
arguments to be passed down.