Error in eigen(corMat) : infinite or missing values in 'x'

Apologies if this is an obvious question - I am quite new to R. I am receiving an error when using the NetworkComparisonTest to test the network structure between time points. I am working with a longitudinal dataset with N = 1048 with a 0-3 Likert measure. I haven't had luck searching online. Any advice would be much appreciated. Example below:

s1k_cor <- estimateNetwork(s1k, default = "EBICglasso")
s1g1_cor <- estimateNetwork(s1g1, default = "EBICglasso")

NCTk1 <- NCT(s1k_cor, s1g1_cor, it = 1000)

Error in eigen(corMat) : infinite or missing values in 'x'

This can happen with missing or NA data in working with eigenvectors, generally. It's hard to be sure for this question because without knowing the library, the eigen function could be from {base}, {float} or another package. Also, without representative data, answers are difficult to check. See the FAQ: How to do a minimal reproducible example reprex for beginners.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.