SachaEpskamp / bootnet

Bootstrap methods for various network estimation routines
30 stars 14 forks source link

Similar question to "Plotting centrality stability showing only "strength" #88" #109

Closed dengxuebin closed 1 year ago

dengxuebin commented 1 year ago

Hi SachaEpskamp, my code is following, but the problem was not changed, still only "strength" although according to your answer "use the statistics argument in bootnet(...) as well.". I am very confused. Hope your reply. Thanks a lot !

network <- estimateNetwork(as.matrix(dat2), default = "mgm", type = type1, level = level1)

(3)case-dropping bootstrap

b1c <-bootnet(network,nBoots=100,nCores=8, type="case",statistics=c("strength","closeness","betweenness"))

plot centrality stability

plot(b1c, statistics=c("strength","closeness","betweenness"))

1525182282

SachaEpskamp commented 1 year ago

You misspelled 'statistics' in the plot(...) call.

Best, Sacha

dengxuebin commented 1 year ago

You misspelled 'statistics' in the plot(...) call.

Best, Sacha

It worked,thanks a lot,sorry for my blunder.

SachaEpskamp commented 1 year ago

No problem, happens so many times to me too :)