get.category.relations: Get and calculate the relationships and oppositions between...

View source: R/functions_triads.r

get.category.relationsR Documentation

Get and calculate the relationships and oppositions between each pair of categories

Description

Use this function to calculate PEM pem values, chisq, distance and coordinates for each pair of categories in either an indicator matrix or the categories from an soc.mca result object. These relationship are usefull for both diagnostics, analysis, interpretation and plotting. For plotting combine with add.category.relations to build your plot.

Usage

get.category.relations(
  r,
  ind = r$indicator.matrix.active,
  dim = c(1, 2),
  rel = t(combn(colnames(ind), 2))
)

Arguments

r

an soc.mca result object

ind

an indicator matrix, see indicator

dim

a numeric vector with the dimensions for the coordinates. This is only sent to extract_mod.

rel

a matrix with pairs of categories

variable

a character vector with the variable where each category in ind came from. If ind was created directly with indicator you can use names(colnames(ind)).

coords

a data.frame with coordinates - similar to those produced by extract_mod

Value

a tibble

Examples

example(soc.mca)
get.category.relations(result)

Rsoc/soc.ca documentation built on March 7, 2024, 8:59 p.m.