statnet / ergm

Fit, Simulate and Diagnose Exponential-Family Models for Networks
Other
96 stars 37 forks source link

Error when trying to run an ANOVA table for valued ergm #471

Closed santiagcarcal closed 2 years ago

santiagcarcal commented 2 years ago

I am fitting a valued ERGM model of a bipartite network. I am using sum as the valued term and the weights of the bipartite matrix as the response variable. I'm using packages ergm and ergm.count to fit the model and network to construct the objects. I've fitted the model and obtained the estimates, but I want to call an ANOVA table for the model using anova(ergm.1, test="Chi") . But I get this error: Error: $ operator is invalid for atomic vectors. Alternatively when I use anova(ergm.1) I only get an 'empty' anova table, as if I had not specified the variables.

mbojan commented 2 years ago

Unlike the GLM method, the method anova.ergm() does not have the test argument. It's primary job is model comparison. What exactly do you want to achieve?

Edit: I think I now see the discrepancies in the documentation. Thank you for reporting!

santiagcarcal commented 2 years ago

THanks for your answer. I want to know how much variation in link formation is explained by each attribute.