mv.2way.test | R Documentation |
Multivariate tests for testing the null hypothesis that there is no treatment effect in a randomized complete block design using different scores.
mv.2way.test(x, block, treatment, score = c("identity", "sign",
"rank"), stand = c("outer", "inner"),
method = c("approximation", "permutation"),
n.simu = 1000, eps=1.0e-10, n.iter=10000,
na.action = na.fail)
x |
a numeric data frame or matrix of response variables. |
block |
a factor with at least two levels. |
treatment |
a factor with at least two levels. |
score |
the score to be used. Possible choices are
|
stand |
the standardization method used. Possible choices are
|
method |
method for the computation of the p-value for the
spatial sign and spatial rank tests. Possible choices are
|
n.simu |
number of simulated permutations if |
eps |
convergence criterion. |
n.iter |
maximum number of iterations. |
na.action |
a function which indicates what should happen when the data contain 'NA's. Default is to fail. |
This implements the tests described in chapter 12 of the MNM book.
A list with class 'htest' containing the following components:
statistic |
the value of the test statistic. |
parameter |
the degrees of freedom for the test statistic or the number of replications in the simulation. |
p.value |
the p-value for the test. |
null.value |
the specified null hypothesis value of the location. |
alternative |
a character string with the value 'two.sided'. |
method |
a character string indicating what type of test was performed. |
data.name |
a character string giving the name of the data set and of the grouping vector. |
Jyrki Mottonen jyrki.mottonen@helsinki.fi
Oja, H. (2010), Multivariate Nonparametric Methods with R, Springer.
mv.1sample.test
, mv.Csample.test
, mv.2way.est
blocks <- gl(10, 5)
treatments <- factor(rep(1:5, 10))
X <- rmvnorm(n = 50, mean = c(1,2,3), sigma = diag(3))
mv.2way.test(X, blocks, treatments, score="r", stand="i", method="a")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.