Error when trying to fit a STERGM model in statnet R

Multi tool use
Error when trying to fit a STERGM model in statnet R
I'm trying to analyze my data using STERGM
(part of package statnet) but I'm experiencing some errors I can't figure out whenever I add node covariate terms to the formula's parameters.
This is the error I get immediately after running the code:
STERGM
*Error in ergm.getglobalstats(nw, m, response = response) :
NA/NaN/Inf in foreign function call (arg 13)*
My networkDynamic
object consists of 5 networks, with changing active vertices.
Googling around (and some basic intuition) tells me I have some missing (NA/NaN
) vertex attributes, but after double and triple checking this isn't the case. I tried different quantitative attributes (one with permanent values over all networks, another with varying values in each network) but all produce the same error.
When fitting each of the 5 networks separately using a "simple" ERGM with the same node covariate terms, everything works fine.
networkDynamic
NA/NaN
To create a reproducible example from code is a pain in the neck, so my data can be downloaded here: https://ufile.io/3osj9
And this is the code I'm trying to run:
#Load the downloaded hoi.Rdata file
library(statnet)
stergm.fit <- stergm (hoidyndel, formation = ~ edges + gwidegree(2, fixed=T)
+ nodecov("authorship"),
dissolution = ~ edges
+ nodecov ("authorship"),
estimate = "CMLE",
times = 0:4)
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.