leifeld / btergm

Temporal Exponential Random Graph Models by Bootstrapped Pseudolikelihood
16 stars 10 forks source link

i.name and j.name returned by the edgeprob function for bipartite networks are not correct #31

Closed shangyuan232 closed 2 years ago

shangyuan232 commented 2 years ago

Taking the dataset "davis" in the "latentnet" package as an example, here is the code for generating a model and running the edgeprpb function.

library(latentnet)
library(btergm)
data("davis")
model.1 <- ergm(davis~edges+gwb1dsp(0.25, fixed=T, cutoff=30)+
                  gwb2dsp(0.25, fixed=T, cutoff=30))
summary(model.1)
edgeprob.model.1 <- edgeprob(model.1, verbose = T)

In the results, the column of j.name is full of NA, and some values in i.name are also NA.