bootnet icon indicating copy to clipboard operation
bootnet copied to clipboard

Correlation matrix is not positive definite

Open xiangboyulan opened this issue 2 years ago • 1 comments

Hi Sacha, Data=read.table("IGD+.txt",header=T)

Network <- estimateNetwork(Data,default = "EBICglasso", corMethod="spearman") Estimating Network. Using package::function:

  • qgraph::EBICglasso for EBIC model selection
    • using glasso::glasso Error in bootnet_correlate(data = data, corMethod = corMethod, corArgs = corArgs, : Correlation matrix is not positive definite.

Network <- estimateNetwork(Data,default = "EBICglasso") Estimating Network. Using package::function:

  • qgraph::EBICglasso for EBIC model selection
    • using glasso::glasso Error in bootnet_correlate(data = data, corMethod = corMethod, corArgs = corArgs, : Correlation matrix is not positive definite.

Could you give me some advise? Thanks a lot!

xiangboyulan avatar Jun 20 '22 04:06 xiangboyulan

Is the Data object a raw dataset? Can you show what the first 10 lines look like?

SachaEpskamp avatar Aug 25 '22 01:08 SachaEpskamp

I will close this issue for now, but please let me know if you still run into problems.

SachaEpskamp avatar May 16 '23 10:05 SachaEpskamp