margin | R Documentation |
Get margin of a table or tables
margin(x, ...)
margin2(x, ...)
conditional(x, ...)
conditional2(x, ...)
intervention(x, ...)
x |
a contingency table or |
... |
other arguments, not currently used |
margin2
keeps all dimensions, and
hence results will sum to the original sum, times the number of cells summed over.
an object of the same class as x
. The resulting
array, or collection of tables, will contain a marginal, conditional
or interventional distribution.
margin2()
: keep all dimensions
conditional()
: conditional distributions
conditional2()
: conditional distributions with all dimensions kept
intervention()
: interventional distributions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.