ind2x2 | R Documentation |
Estimates the expected frequencies from an 2x2 table under the null hypotheses of independence.
ind2x2(x, margin = 3, pTabMethod = c("dirichlet", "half", "classical"))
x |
a 2x2 table |
margin |
if multidimensional table (larger than 2-dimensional), then the margin determines on which dimension the independene tables should be estimated. |
pTabMethod |
‘classical’ that is function |
The independence table(s) with either relative or absolute frequencies.
Kamila Facevicova, Matthias Templ
Facevicova, K., Hron, K., Todorov, V., Guo, D., Templ, M. (2014). Logratio approach to statistical analysis of 2x2 compositional tables. Journal of Applied Statistics, 41 (5), 944–958.
data(employment)
ind2x2(employment)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.