margin.tables {contingency}R Documentation

Get the marginal distributions

Description

Get the marginal distributions

Usage

## S3 method for class 'tables'
margin(x, margin = NULL, order = TRUE, ...)

Arguments

x

an object of class tables

margin

integer vector giving margin to be calculated (1 for rows, etc.)

order

logical indicating whether resulting indices should be in the same order as stated in margin

...

other arguments to function

Details

Calculates marginal distributions for each entry in a probMat.

Value

An object of class tables consisting of the required marginal distribution.


[Package contingency version 0.0.10 Index]