contingency: Contingency table

Description Usage Arguments Value Examples

View source: R/UnivariateFactor.R

Description

Create a cross table between a cluster variable and a selected categorical variable.

Usage

1
contingency(object, var)

Arguments

object

An object of class ccdata

var

A data vector of an active categorical variable

Value

A cross table between two variables. The same table with margins and sum The table with percentages by lines Number of lines (i.e. number of clusters) Number of columns (i.e. number of modes in the other variables)

Examples

1
2
3
4
data(BankCustomer)
obj <- Dataset(BankCustomer, BankCustomer$Cluster)
table <- contingency(obj, BankCustomer$profession)
effectiveTable <- table[[2]]

adrienPAVOINE/ClustCheck documentation built on Dec. 31, 2020, 6:45 p.m.