Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SBM on correlation based network #11

Open
Fuschi opened this issue Apr 11, 2023 · 1 comment
Open

SBM on correlation based network #11

Fuschi opened this issue Apr 11, 2023 · 1 comment

Comments

@Fuschi
Copy link

Fuschi commented Apr 11, 2023

Hello!
First of all thank you for the really interesting package, I'm a beginner in sbm and I would like to ask you for suggestions on this topics. I am interested in the search for latent group networks built starting from a correlation matrix and obtaining the adjacency matrix by thresholding the absolute values of correlation; therefore each link is associated with a weight that can vary from -1 to 1.
I would like to ask you if it was possible to adapt the functions present in the package to this type of correlation networks and my main doubts are:

  • What is the "best input" I can give to the estimate sbm functions, should I consider only significant positive links and binarize them into 0,1 for example?
  • Is it possible to keep the information of negative links as well? I would like if the vertices are connected by negative weighted links, then they are also labeled in different groups (like a sort of repulsion between them). Can I introduce those informations in the covariates argument?

Thanks in advance and have a nice day.

@jchiquet
Copy link
Member

Sorry for the late reply.

In my opinion, you should transform the data from correlation matrix using a Fisher type transformation (https://en.wikipedia.org/wiki/Fisher_transformation) and then apply an SBM with a Gaussian emission law.
Thus, you will keep all the information available on the edges

netMat <- atanh(my_corr_mat)
 mySBM <-    estimateSimpleSBM(
       netMat,
       model = "gaussian",
       directed = FALSE
     )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants