Closed corneliusfritz closed 5 months ago
Thanks @corneliusfritz for reporting. Looks like a bug.
I think these...
... two lines, of which the second throws the error, are completely unnecessary because the net.stat
object is never used in this function.
Thanks, @mbojan!
Using an offset in an ergm specification while wanting to use the Godambe information for the MPLE does currently not work. Here is a small sample script to showcase it:
The reason must lie in the
ergm_mplecov
function, where the offset term is included in thenet.stat
matrix (which are the statistics of the simulated network), but not in the matrix of change statistics (pl$xmat
). The code wants to equate the column names, which then leads to the aforementioned error. The easiest fix might be to exclude the offset term from the statistics, as the uncertainty quantification does not relate to it. I, however, do not know if this leads to downstream problems ...