margin.tables: Get the marginal distributions

View source: R/margin.R

margin.tablesR 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.


rje42/contingency documentation built on March 6, 2023, 5:16 a.m.