Learn R Programming

CorReg (version 1.0.5)

compare_struct: To compare sub-regression structures

Description

Compares two sub-regression structures, considering one of them as the "true one".

Usage

compare_struct(trueZ = trueZ, Zalgo = Zalgo, all = TRUE, mode = "NULL")

Arguments

trueZ
first structure (binary adjacency matrix)
Zalgo
second structure (binary adjacency matrix)
all
(boolean) Also compute the ratio for each stat.
mode
how to modify the structures before comparison. mode=c("NULL","hybrid","clique","sym") It allows to compare groups instead of exact sub-regressions. Does nothing by default.

Value

  • true1Number of links that exist in both matrices
  • false1Number of links that exist only in Zalgo
  • false0Number of links that exist only in trueZ
  • deltadrNumber of sub-regressions in trueZ - Number of sub-regressions in Zalgo (i.e. : negative if too much sub-regressions in Zalgo)
  • true_leftNumber of variables redundant in both matrices
  • false_leftNumber of variables redundant in Zalgo but not in trueZ
  • ratio_true1ratio of links in trueZ that exist also in Zalgo
  • ratio_true0ratio of links not in trueZ that don't exist in Zalgo.