testC: run test using either simulation or permutation.
Description
run test using either simulation or permutation.
Usage
testC(dta, TS, typeTS, TSextra, B = 5000L)
Value
A list with test statistics and p values
Arguments
- dta
a list with the data
- TS
routine to calculate test statistics for non-chi-square tests
- typeTS
type of a test statistic
- TSextra
additional info passed to TS, if necessary
- B
=5000, number of simulation runs.