statnet / lolog

Latent Order Logistic (LOLOG) Graph Models
Other
5 stars 1 forks source link

Unable to specify verbose = 3 in lolog() function when formula includes a constraint #10

Open thelondonsimon opened 3 months ago

thelondonsimon commented 3 months ago

When attempting to fit a model which includes + constraint(boundedDegree(X,Y)), including the argument verbose = 3 generates an error.

library(lolog)
library(statnet)
data(florentine)
fit <- lolog(flomarriage ~ edges + constraint(boundedDegree(1,100)), verbose = 3)

Outputs the following:

Initializing Using Variational Fit
Initial Theta:
 -1.609438 
Iteration 1 
Drawing 1000 Monte Carlo Samples:
  |==============| 100%
Objective:  10.936 

Error in pairs.default(rbind(stats, os), pch = ".", cex = c(rep(1, ns),  : 
  only one column in the argument to 'pairs'