powered by
Performs chi-square test on contingency tables.
LearnNonparam::PermuTest -> LearnNonparam::ContingencyTableTest -> ChiSquare
LearnNonparam::PermuTest
LearnNonparam::ContingencyTableTest
ChiSquare
ChiSquare$new()
Inherited methods LearnNonparam::PermuTest$plot() LearnNonparam::PermuTest$print() LearnNonparam::PermuTest$test()
LearnNonparam::PermuTest$plot()
LearnNonparam::PermuTest$print()
LearnNonparam::PermuTest$test()
new()
Create a new ChiSquare object.
ChiSquare$new(type = c("permu", "asymp"), n_permu = 10000)
type
a character string specifying the way to calculate the p-value.
n_permu
an integer indicating number of permutations for the permutation distribution. If set to zero (default) then all permutations are used.
A ChiSquare object.
t <- pmt( "table.chisq", n_permu = 0 )$test(Table5.4.2)$print() t$type <- "asymp" t
Run the code above in your browser using DataLab