Distance term for ergm (Minkowski and spherical distances) - #660
Distance term for ergm (Minkowski and spherical distances)#660CarterButts wants to merge 4 commits into
Conversation
… check, the term passes its checks, and the examples run correctly. A NEWS item has been added, and the term is also documented (and a test has been added).
|
Thanks, Carter! Definitely worth including. My thoughts so far:
|
|
Hi, Pavel. To your points:
|
|
I can only answer briefly at the moment: The There might be a simpler way to do it, but If you really want to access the network attribute via a nodal attribute API, you can: for example, |
|
OK, making those changes (and adding a few more features). Will update.... |
functionality (including vertex based attributes, scaling, and the ability to combine spherical and Minkowski metrics), updated docs and tests, and tested everything. Seems to be working fine.
|
@krivit OK, I have made the suggested changes, and added some new functionality. Among other things, I switched from |
…ing a matrix (if accepted). references #660
This update adds a term called
distancethat can be used for binary ERGMs (directed or undirected). The term includes support forThis functionality was previously in an ergm userterms package, but given recent demand from Steve, Sam, and Martina, I dusted the package off, upgraded it, and then integrated the functionality into the
ergmpackage.The function is fully documented (with examples), and includes some basic tests. I have confirmed that the package w/the term passes
R CMD check, the tests pass, and the examples work correctly. I think all is copacetic, but let me know if there are things that require fixin'.