Description Usage Arguments Details Value Author(s) See Also
This function computes the pvalue of Pearsons's chisquared test for
the comparison of corpus frequency counts (under the null hypothesis
of equal population proportions). It is based on the chisquared
statistic X^2 implemented by the chisq
function.
1 2  chisq.pval(k1, n1, k2, n2, correct = TRUE,
alternative = c("two.sided", "less", "greater"))

k1 
frequency of a type in the first corpus (or an integer vector of type frequencies) 
n1 
the sample size of the first corpus (or an integer vector specifying the sizes of different samples) 
k2 
frequency of the type in the second corpus (or an integer
vector of type frequencies, in parallel to 
n2 
the sample size of the second corpus (or an integer vector
specifying the sizes of different samples, in parallel to

correct 
if 
alternative 
a character string specifying the alternative
hypothesis; must be one of 
The pvalues returned by this functions are identical to those
computed by chisq.test
(twosided only) and
prop.test
(onesided and twosided) for twobytwo
contingency tables.
The pvalue of Pearson's chisquared test applied to the given data (or a vector of pvalues).
Stefan Evert
chisq
, fisher.pval
,
chisq.test
, prop.test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.