ergm icon indicating copy to clipboard operation
ergm copied to clipboard

Make gof.ergm() work for valued ERGMs

Open krivit opened this issue 3 years ago • 4 comments

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

krivit avatar Apr 30 '21 05:04 krivit

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

mbojan avatar Oct 15 '21 22:10 mbojan

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

krivit avatar Oct 16 '21 01:10 krivit

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 (?).

mbojan avatar Oct 25 '21 00:10 mbojan

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

krivit avatar Oct 25 '21 02:10 krivit