phi2Mat4BurtTable: Compute the phi2 (correlation) matrix for data tables...

View source: R/goodies4MCA.R

phi2Mat4BurtTableR Documentation

Compute the phi2 (correlation) matrix for data tables suitable for Multiple Correspondence Analysis (MCA).

Description

phi2Mat4BurtTable Compute the phi2 (correlation) matrix for data tables suitable for Multiple Correspondence Analysis (MCA).

Usage

phi2Mat4BurtTable(DATA, make_data_nominal = TRUE)

Arguments

DATA

A data table suitable for MCA. Could be an I by K data frame / matrix with columns being factors, or an already I by J expanded matrix with 0/1 (as created for example with ExPosition::makeNominalData).

make_data_nominal

(Default: TRUE) when TRUE the data are factors, otherwise, the data are already in 0/1 form.

Details

The phi2 matrix from phi2Mat4BurtTable can be used to create correlation heat maps for MCA.

Value

A list with

  1. phi2.mat: The phi2 correlation matrix and

  2. burt.table: the Burt table.

Examples

## Not run: 
if(interactive()){
library(ExPosition)
data("mca.wine")
phi2Mat4BurtTable(mca.wine$data)
  }

## End(Not run)

HerveAbdi/data4PCCAR documentation built on Sept. 11, 2022, 4:19 p.m.