Margins {cmm}R Documentation

Margins

Description

Provides the required margins for selected variables

Usage

Margins(var, k)

Arguments

var

vector indicating the variables

k

vector indicating the required margin: 0 = the total, 1 = first margin, 2 = second margin, etc.

Details

Particularly useful if for a large number of variables the same margins are required. The output can be used as argument for functions MarginalMatrix, DesignMatrix, and ConstraintMatrix

Value

list

Author(s)

L. A. van der Ark L.A.vanderArk@uva.nl

See Also

ConstraintMatrix, MarginalMatrix, RecordsToFrequencies

Examples

Margins(c(1, 2, 3, 4, 5), c(0, 1, 2)) # total, 1st, and 2nd margin for variables 1,.., 5

[Package cmm version 1.0 Index]