Skip to content

Commit 0fdcb04

Browse files
Copilotkrivit
andauthored
Address review: add explanatory comments in test-target-offset.R
Agent-Logs-Url: https://github.com/statnet/tergm/sessions/e7c7ae85-14b4-49e7-8957-c4dae713d8e2 Co-authored-by: krivit <15682462+krivit@users.noreply.github.com>
1 parent c88bdd6 commit 0fdcb04

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/testthat/test-target-offset.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ opttest({
4444
control=control.tergm(init=c(-3,0.8,log(9)))
4545
)
4646

47+
# Verify all four models produce coefficients without error
4748
sapply(list(mod1, mod2, mod3, mod4), function(x) coef(x))
4849

50+
# Verify simulation runs without error for all models
4951
for (mod in list(mod1, mod2, mod3, mod4)) {
5052
print(apply(simulate(mod, monitor=~edges+degree(3), output="stats", time.slices=200), 2, mean))
5153
}

0 commit comments

Comments
 (0)