Description Usage Arguments Author(s) See Also Examples
Organizes various tables of categorical variables and tests tables (Chi-square and Fisher's exact test)
1 |
data |
data is a data.frame |
Emmanuel Arnhold
emmanuelarnhold@yahoo.com.br
gds, dscor, dplot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | treatments=gl(2, 30, labels = c("Control", "Treat"))
resultsA=rep(c("positive","negative", "positive","negative"),c(25,5,7,23))
resultsB=rep(c("positive","negative", "positive","negative"),c(28,2,8,22))
resultsC=rep(c("positive","negative", "positive","negative"),c(16,14,13,17))
data=data.frame(treatments,resultsA, resultsB, resultsC)
r=tables(data)
names(r)
r
r[1]
r[2]
r[6]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.