parplot {unrepx} | R Documentation |
Pareto plot of effects
Description
Constructs a bar plot of ordered effects, along with cutoff values for the margin of error (ME) and simultaneous margin of error (SME). Such a plot is suggested in Lenth (1989), but other methods may be used for obtaining the ME and SME.
Usage
parplot(effects, pareto = TRUE, absolute = TRUE, horiz = FALSE, col = absolute,
critvals, method = "Zahn", alpha = .05, refdist, sim.opts,
ylab = "Estimated effects", top = n.effects, cex.annot = 0.75, ...)
Arguments
effects |
Numeric vector of effects or contrasts to be explored. |
pareto |
Logical value. If |
absolute |
Logical value. If |
horiz |
Logical value. If |
col |
A logical value, or valid color code(s) or names(s). If logical, a value of |
critvals |
Numeric value(s). If these are provided, the first two elements of |
method |
Character value designating the method to use in determining the margins of error displayed in the plot when |
alpha |
Numeric value. A null reference distribution for |
refdist |
A result of |
sim.opts |
A |
ylab |
Character axis label (overrides the default). |
top |
Numeric value giving the number of effects to display (this may help make all the important effect names visible). When |
cex.annot |
Character magnification for annotations |
... |
Additional graphical parameters (see |
Details
The cutoff values displayed in the plot are labeled “ME”, the margin of error, and “SME”, the simultaneous margin of error. If not specified using crtivals
, they are obtained using the 1-alpha
quantiles of the reference distribution of absolute pseudo-t
ratios. ME is based on the distribution of |t|
. SME is based on the distribution of the maximum |t|
for a whole set of null effects.
In determining cutoff values, parplot
tries to avoid re-simulating the reference distribution. Specifically, if the global variable .Last.ref.dist
exists, and its contents match the given method
and number of effects, it is used as the reference distribution. Similarly, if refdist
is supplied, it is used (without checking). If a suitable reference distribution is not found, then it is simulated via ref.dist
, with any arguments from sim.opts
added.
If critvals
is supplied, the specified values are used as the ME and SME: no reference distribution is needed, and hence method
, alpha
, and refdist
are ignored.
The plot is scaled so that the ME cutoff always shows. The SME cutoff will only be visible if an observed effect is near or exceeds that boundary. The numeric values of the ME and SME are also shown in an annotation in the plot.
Value
Invisibly, the vector of the ME and SME values.
Author(s)
Russell V. Lenth
References
Lenth, R (1989) Quick and Easy Analysis of Unrelicated Factorials. Technometrics 31(4), 469-473
See Also
For more details on PSEs and reference distributions, see PSE
and ref.dist
. Note that parplot
produces in essence a graphical version of the information from eff.test
, but the latter provides more resolution in terms of P
values.
Other graphical ways of assessing active effects include a dot plot with a reference curve (refplot
) and a half-normal plot (see hnplot
).
Examples
require("unrepx")
parplot(pdEff, top = 10)