statnet / latentnet

Latent Position and Cluster Models for Statistical Networks
http://www.statnet.org
Other
19 stars 6 forks source link

ergmm gives error: Input vector wrong length #7

Closed leavanh closed 4 years ago

leavanh commented 4 years ago

To reproduce: s <- c(FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE, TRUE, FALSE, TRUE, TRUE, TRUE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE) sociomatrix <- matrix(data = s, nrow = 10, ncol = 10) network <- as.network(x = sociomatrix, directed = FALSE, loops = FALSE, vertex.attr = c(1:10), matrix.type = "adjacency")

Try to fit ergmm(network ~ euclidean(6), tofit = "mle")

krivit commented 4 years ago

@leavanh , I haven't had a chance to look at this ticket yet, but it looks like there isn't enough information in the network for the latent space dimension; but the error should definitely be less cryptic.