Description Usage Arguments Details Examples
Uses a formula interface to specify how the proportions are to be calculated.
1 2 |
formula |
the formula describing the relationship |
data |
a data frame (or you can pipe this in) |
as.percent |
show proportions in percent (e.g. multiply by 100) |
... |
statistics functions to be applied to the data, e.g. mean, sd, confidence(0.95) |
wide |
reformat the output as a cross-tabulation. This makes sense only when there are just two variables |
margins |
show the marginal probabilities. Makes the most sense if |
format |
Use just for internal purposes. |
Using |
in the formula specifies a conditional proportion
~ A : proportion of cases in each level of A
~ A + B: joint proportion: each level of A crossed with B
~ A | B: conditional proportion: for each level of B, what fraction are in each level of A
A ~ B: another way of specifying the conditional proportion
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.