contingency2xt.comb | R Documentation |
This function uses the Kruskal-Wallis criterion to test
the hypothesis of no association between the counts
for two responses
"A" and "B" across t categories and across M
blocks.
contingency2xt.comb(...,
method = c("asymptotic", "simulated", "exact"),
dist = FALSE, Nsim = 10000)
... |
Either several lists or a list of |
method |
=
|
dist |
|
Nsim |
|
For details on the calculation of the Kruskal-Wallis criterion and its exact or simulated
distribution for each block see contingency2xt
.
A list of class kSamples
with components
test.name |
|
t |
vector giving the number of classification categories per block |
M |
number of blocked tables |
kw.list |
a list of the |
null.dist |
simulated or enumerated null distribution
of the combined test statistic. It is given as an
|
method |
the |
Nsim |
the number of simulations. |
method = "exact"
should only be used with caution.
Computation time is proportional to the number of enumerations. In most cases
dist = TRUE
should not be used, i.e.,
when the returned distribution objects
become too large for R's work space.
The required level for Nsim
in order for method = "exact"
to be carried out, is conservative, but there is no transparent way to get a
better estimate. The actual dimension L
of the realized null.dist
will typically be much smaller, since the distribution is compacted to
its unique support values.
out <- contingency2xt.comb(list(c(25,15,20),c(16,6,18)),
list(c(12,4,5),c(13,8,9)),method = "simulated", dist=FALSE, Nsim=1e3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.