View source: R/functions_triads.r
get.category.relations | R Documentation |
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.
get.category.relations(
r,
ind = r$indicator.matrix.active,
dim = c(1, 2),
rel = t(combn(colnames(ind), 2))
)
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 |
a tibble
example(soc.mca)
get.category.relations(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.