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

bug in undirected, degree-corrected case? sbm and sbmt estimates don't gree #3

Open
jcarlen opened this issue Jan 30, 2021 · 0 comments
Assignees

Comments

@jcarlen
Copy link
Owner

jcarlen commented Jan 30, 2021

bug in undirected, degree-corrected case? sbm and sbmt estimates disagree when using degreeCorrect = 2 for sbmt, but this should be the same as degreeCorrect = 1 when there is only one time slice in the network.

  library(sbmt)
  data("la_byhour_edgelist") 

  tmp.sbmt = sbmt(edgelist.time = list(la_byhour_edgelist[[18]]), maxComms = 3, 
                                degreeCorrect = 1, 
                                directed = F, klPerNetwork = 10, tolerance = 1e-4, seed = 1, seedComms = NULL)
  
  tmp.sbm = sbm(edgelist = la_byhour_edgelist[[18]], maxComms = 3, 
                               degreeCorrect = 1, 
                               directed = F,  klPerNetwork = 10, tolerance = 1e-4, seed = 1, seedComms = NULL)
  
  identical(tmp.sbm$EdgeMatrix, tmp.sbmt$EdgeMatrix[[1]]) #OK
  identical(tmp.sbm$FoundComms, tmp.sbmt$FoundComms) #OK
  
  tmp.sbmt = sbmt(edgelist.time = list(la_byhour_edgelist[[18]]), maxComms = 3, 
                                degreeCorrect = 2, 
                                directed = F, klPerNetwork = 10, tolerance = 1e-4, seed = 1, seedComms = NULL)

 identical(tmp.sbm$EdgeMatrix, tmp.sbmt$EdgeMatrix[[1]]) #FALSE
 identical(tmp.sbm$FoundComms, tmp.sbmt$FoundComms) #FALSE
@jcarlen jcarlen self-assigned this Jan 30, 2021
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

1 participant