View source: R/stepDownTrendTest.R
stepDownTrendTest | R Documentation |
Performs step-down trend test procedures for monotone responses to detect NOEC (LOEC) according to OECD (2006).
stepDownTrendTest(x, ...)
## Default S3 method:
stepDownTrendTest(
x,
g,
test = c("leTest", "spearmanTest", "jonckheereTest", "cuzickTest", "chackoTest",
"johnsonTest"),
alternative = c("two.sided", "greater", "less"),
continuity = FALSE,
...
)
## S3 method for class 'formula'
stepDownTrendTest(
formula,
data,
subset,
na.action,
test = c("leTest", "spearmanTest", "jonckheereTest", "cuzickTest", "chackoTest",
"johnsonTest"),
alternative = c("two.sided", "greater", "less"),
continuity = FALSE,
...
)
x |
a numeric vector of data values, or a list of numeric data vectors. |
... |
further arguments to be passed to or from methods. |
g |
a vector or factor object giving the group for the
corresponding elements of |
test |
the trend test that shall be performed. Defaults to |
alternative |
the alternative hypothesis. Defaults to |
continuity |
logical indicator whether a continuity correction
shall be performed. Only relevant for |
formula |
a formula of the form |
data |
an optional matrix or data frame (or similar: see
|
subset |
an optional vector specifying a subset of observations to be used. |
na.action |
a function which indicates what should happen when
the data contain |
According to OECD 2006 one can perform a test for trend on responses from all dose groups including the control. If the trend test is significant at the 0.05 level, the high dose group is omitted, and the trend statistic with the remaining dose groups is re-compute The procedure is continued until the trend test is first non-significant at the 0.05 level, then stop.
The NOEC is the highest dose remaining at this stage. If this test is significant when only the lowest dose and control remain, then a NOEC cannot be established from the data.
A list with class "trendPMCMR"
containing the following components:
a character string indicating what type of test was performed.
a character string giving the name(s) of the data.
lower-triangle matrix of the estimated quantiles of the pairwise test statistics.
lower-triangle matrix of the p-values for the pairwise tests.
a character string describing the alternative hypothesis.
a character string describing the method for p-value adjustment.
a string that denotes the test distribution.
Factor labels for g
must be assigned in such a way,
that they can be increasingly ordered from zero-dose
control to the highest dose level, e.g. integers {0, 1, 2, ..., k} or
letters {a, b, c, ...}. Otherwise the function may not
select the correct values for intended zero-dose control.
It is safer, to i) label the factor levels as given above,
and to ii) sort the data according to increasing dose-levels
prior to call the function (see order
, factor
).
OECD (2006) Current Approaches in the Statistical Analysis of Ecotoxicity Data: A Guidance to Application, OECD Series on Testing and Assessment 52, Paris: Organisation for Econonomic Co-operation and Development.
leTest
, jonckheereTest
,
spearmanTest
, cuzickTest
,
chackoTest
, johnsonTest
res <- stepDownTrendTest(Y ~ DOSE, data = trout,
test = "jonckheereTest",
alternative = "less")
## print method
res
## summary method
summary(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.