Closed llrs closed 5 years ago
Hi,
qgraph expects a correlation matrix here. Perhaps you want to try estimateNetwork from bootnet that wraps around qgraph to do this by default.
Many thanks, I tried with a square correlation matrix, but I got an error.
m <- matrix(runif(25, -1, 1), ncol = 5, nrow = 5)
qgraph(m, graph = "cor")
## Error in eigen(input)$values > 0 : invalid comparison with complex values
I am trying to plot the correlation between two set of variables, however I can't.
The problem arises from the check of
(nrow(input) != ncol(input))
because I don't have the same number of variables for each set.A reproducible example would be:
Is there any workaround ?