- x
object; an object returned from the
power.f.ancova.shieh() function.
- mu.vector
vector; adjusted means (or estimated marginal means)
for each level of a factor. Ignored when 'x' is
specified.
- sd.vector
vector; unadjusted standard deviations for each level
of a factor. Ignored when 'x' is specified.
- n.vector
vector; sample sizes for each level of a factor.
Ignored when 'x' is specified.
- p.vector
vector; proportion of total sample size in each level
of a factor. These proportions should sum to one.
Ignored when 'x' is specified.
- r.squared
explanatory power of covariates (R-squared) in the
ANCOVA model. Ignored when 'x' is specified.
- k.covariates
Number of covariates in the ANCOVA model. Ignored
when 'x' is specified.
- contrast.matrix
vector or matrix; contrasts should not be confused
with the model (design) matrix. Rows of contrast
matrix indicate independent vector of contrasts
summing to zero. The default contrast matrix is
constructed using deviation coding scheme (a.k.a.
effect coding). Columns in the contrast matrix
indicate number of levels or groups (or cells in
factorial designs). Ignored when 'x' is specified.
- power
statistical power, defined as the probability of
correctly rejecting a false null hypothesis, denoted
as \(1 - \beta\). Ignored when 'x' is specified.
- alpha
type 1 error rate, defined as the probability of
incorrectly rejecting a true null hypothesis, denoted
as \(\alpha\). Note that this should be specified
even if 'x' is specified. The 'alpha' value within
the 'x' object pertains to the omnibus test, NOT the
test of contrasts.
- adjust.alpha
character; one of the methods in c("none", "tukey",
"bonferroni", "holm", "hochberg", "hommel", "BH",
"BY", "fdr") to control Type 1 error. See
?stats::p.adjust.
- ceil.n
logical; TRUE by default. If FALSE
sample sizes in each cell are NOT rounded up.
- verbose
1 by default (returns test, hypotheses, and
results), if 2 a more detailed output is given
(plus key parameters and definitions), if 0 no
output is printed on the console.
- utf
logical; whether the output should show Unicode
characters (if encoding allows for it). FALSE
by default.