R语言进行网络分析,计算CS系数时,
报错Error in corStability(Q) :
CS-coefficient only available for person or node drop bootstrap
原因为使用bootnet计算Q时
Q<-bootnet(net, nBoots = 1000, nCores = 5,
type = "nonparametric",
statistics='bridgeExpectedInfluence',
communities=item_community)
type选择了"nonparametric"即非参数自举,不能计算CS系数
修正为
Q<-bootnet(net, nBoots = 1000, nCores = 5,
type = "case",
statistics='bridgeExpectedInfluence',
communities=item_community)
使用the case-dropping bootstrap进行计算,就可以了
补充:
Most important methods are type = 'nonparametric&#