statnet / ergm

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

Make gof.ergm() work for valued ERGMs #278

Open krivit opened 3 years ago

krivit commented 3 years ago

Some statistics that could be implemented:

mbojan commented 2 years ago

I kind-of need it now so will take a shot at it.

krivit commented 2 years ago

@mbojan , thanks! Let me know if you want to discuss any issues around that.

mbojan commented 2 years ago

It's been a while since I dug through this code... Am I correct, @krivit , that GOF= formula does not accept arbitrary ERGM terms, mm() for example? It is not clear to me why gof.formula() has to hard-code handling the terms semi-manually here

https://github.com/statnet/ergm/blob/927385554b7a9613eb942736ec9e02b0620d021e/R/gof.ergm.R#L276

... and later (?).

krivit commented 2 years ago

I think so. It might be worth adding a facility for arbitrary terms.