Pool several quadrat tests into a single quadrat test.
# S3 method for quadrattest
pool(..., df=NULL, df.est=NULL, nsim=1999,
Xname=NULL, CR=NULL)
Any number of objects, each of which is a quadrat test
(object of class "quadrattest"
).
Optional. Number of degrees of freedom of the test statistic.
Relevant only for df.est
.
Optional. The number of fitted parameters, or the
number of degrees of freedom lost by estimation of
parameters.
Relevant only for df
.
Number of simulations, for Monte Carlo test.
Optional. Name of the original data.
Optional. Numeric value of the Cressie-Read exponent CR
overriding the value used in the tests.
Another object of class "quadrattest"
.
The function pool
is generic. This is the method for the
class "quadrattest"
.
An object of class "quadrattest"
represents a
quadrat.test
.
Each of the arguments …
must be an object of class
"quadrattest"
. They must all be the same type of test
(chi-squared test or Monte Carlo test, conditional or unconditional)
and must all have the same type of alternative hypothesis.
The test statistic of the pooled test is the Pearson
For a pooled df
or df.est
.
The resulting
For a pooled Monte Carlo test, new simulations are performed
to determine the pooled Monte Carlo
# NOT RUN {
Y <- split(humberside)
test1 <- quadrat.test(Y[[1]])
test2 <- quadrat.test(Y[[2]])
pool(test1, test2, Xname="Humberside")
# }
Run the code above in your browser using DataLab