Posts

Showing posts with the label statnet

Error when trying to fit a STERGM model in statnet R

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 ...