Usage
halfnormal(x, ...)
## S3 method for class 'default':
halfnormal(x, labs=names(x), codes = NULL, pch = 1, cex.text = 1,
alpha = 0.05, xlab = "absolute effects", large.omit = 0, plot=TRUE,
crit=NULL, ...)
## S3 method for class 'lm':
halfnormal(x, labs = NULL, code = FALSE, pch = NULL, cex.text = 1,
alpha = 0.05, xlab = "absolute coefficients", large.omit = 0, plot=TRUE,
keep.colons = !code, ME.partial = FALSE,
external.pe = NULL, external.center = FALSE, contr.center = "contr.poly",
pch.set = c(1, 16, 8), scl = NULL, method="Lenth",
legend=code, err.points=TRUE, err.line=TRUE, linecol="darkgray", linelwd=2,
...)
## S3 method for class 'design':
halfnormal(x, response = NULL, labs = NULL, code = FALSE, pch = NULL,
cex.text = 1,
alpha = 0.05, xlab = "absolute coefficients", large.omit = 0, plot=TRUE,
keep.colons = !code, ME.partial = FALSE,
external.pe = NULL, external.center = FALSE, contr.center = "contr.poly",
pch.set = c(1, 16, 8), scl = NULL, method="Lenth",
legend=code, err.points=TRUE, err.line=TRUE, linecol="darkgray", linelwd=2,
...)
ME.Lenth(b, simulated=TRUE, alpha=NULL)
CME.LW98(b, sterr, dfe, simulated=TRUE, alpha=NULL)
CME.EM08(b, sterr, dfe, simulated=TRUE, weight0=5, alpha=NULL)
Arguments
x
a numeric vector of effects, a linear model from experimental data,
or an experimental design of class design
labs
effect labels;
default labels: for the default method, names of the vector x, or b1
, b2
, ... for
unnamed vectors; for classes design
or lm
taken from the linear model
codes
a vector with a code for each effect; the default NULL
uses the labs
values
code
a logical; TRUE
implies that factor letters
are used instead of factor codes, and that the default for default for
keep.colons
is changed to FALSE
pch
plot symbol; NULL
, a number or a vector of plot symbol numbers
or the same length as the effects in x;
in the default method, a single number (default 1) implies that the given
plotting symbol is used for for all points;
for the o
cex.text
factor to hand to cex
argument for point labeling with
function text
and margin annotations with function mtext
;
for mtext
, it is multiplied with par("cex")
, in order to
ob
alpha
number between 0 and 1: the significance level for labelling effects;
for functions ME.Lenth
, CME.LW98
and CME.EM08
,
alpha
can also be NULL
or a numeric vector;
for using the sim
xlab
character string: the x axis label
plot
logical; if FALSE
, plotting is suppressed
large.omit
integer number of largest effects to be omitted from plot
and calculations in order to concentrate on the smaller effects;
(note that the significance is also re-assessed; if that is undesirable,
an explicit crit
value ca
crit
default NULL
; not meant for the end user; allows the method
option for linear models and experimental designs to choose alternatives
to Lenth's method
keep.colons
if TRUE
, the automatic effect labels contain colons for interactions
ME.partial
if TRUE
, partial aliasing among main effects is
permitted and will be orthogonalized away
external.pe
numeric vector with values from outside the experimental data
for use in estimating the error variance
external.center
if TRUE
, external values from external.pe
are taken as center point values, and a nonlinearity check contrast is estimated
from them
contr.center
contrasts used for external center points;
contr.poly
or contr.XuWu
pch.set
plot symbols used for experimental effects, automatically
determined lack of fit contrasts or pure error effects
scl
squared column length to which the model matrix is normalized;
default: number of experimental runs
method
the default "Lenth"
applies Lenth's method to
the combined set of effects including error contrasts (if any);
the alternatives "LW98"
or "EM08"
apply the methods proposed by Larntz and Whitcomb (199
legend
squared column length to which the model matrix is normalized;
default: number of experimental runs
err.points
logical, default TRUE
; determines, whether pure error
points are added to the plot (lack-of-fit points are always added)
err.line
logical, default TRUE
; determines, whether null line
is added to the plot in case pure error points are available
linecol
specifies the color for the null line, if applicable
linelwd
specifies the width of the null line, if applicable
response
response for which the plot is to be created
...
further options to be handed to the plot
function;
among these,
if options col
and/or cex
have an element for each effect,
these are used in the expected order (first color refers to first element
simulated
logical; if FALSE
, the original critical values from
Lenth 1989 are used, otherwise the methods use stored simulated values from a million
simulation runs for significance levels of 0.01, 0.02, ..., to 0.25
sterr
a standard error for b
, obtained from (a few, dfe
)
pure error degrees of freedom; the methods by Larntz and Whitcomb (1998) and
Edwards and Mee (2008) combine this with Lenth's method
dfe
the number of pure error degrees of freedom on which
sterr
was based
weight0
a tuning parameter for the method by Edwards and Mee 2008;
Edwards and Mee recommend to set this to 5