ergm
ergm copied to clipboard
Make gof.ergm() work for valued ERGMs
Some statistics that could be implemented:
- Dichotomised statistics (i.e., normal GoF statistics for nonzero ties)
- Cumulative distribution of edge values
- Outsums/Insums/B1Sums/B2sums
I kind-of need it now so will take a shot at it.
@mbojan , thanks! Let me know if you want to discuss any issues around that.
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 (?).
I think so. It might be worth adding a facility for arbitrary terms.