statnet / ergm

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

Optional MPLE existence check? #570

Open mbojan opened 4 months ago

mbojan commented 4 months ago

Some tests with bigger data show that MPLE existence checking in

https://github.com/statnet/ergm/blob/1f4401ed73356cbf89c2f35fd35d6a981f4caea0/R/ergm.mple.R#L75

is time-consuming and memory-hungry. It's an LP so I guess there are little chances of making it leaner (I'm not sure if there are LP implementations for sparse matrices etc...?). Perhaps we can make a control option to disable it on demand?

krivit commented 4 months ago

We should be able to add a control parameter for that, sure.

krivit commented 1 month ago

@mbojan , can you come up with a heuristic for determining whether a check would be too long? Right now, you can turn it off manually, but it would be nice to autodetect the conditions instead.