Skip to content

Commit

Permalink
ergm.ego() now calls ergm() with force.main=TRUE, to ensure that the …
Browse files Browse the repository at this point in the history
…Hessian is computed.

fixes #65
  • Loading branch information
krivit committed Apr 9, 2022
1 parent 52e2038 commit 0ac23f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: ergm.ego
Version: 1.0-668
Version: 1.0-669
Date: 2022-04-09
Title: Fit, Simulate and Diagnose Exponential-Family Random Graph Models to Egocentrically Sampled Network Data
Authors@R: c(
Expand Down
1 change: 1 addition & 0 deletions R/ergm.ego.R
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ ergm.ego <- function(formula, popsize=1, offset.coef=NULL, constraints=~.,..., c
out <- list(v=v, m=m, formula=formula, ergm.formula=ergm.formula, offset.coef=offset.coef, ergm.offset.coef=ergm.offset.coef, egor=egor, ppopsize=ppopsize, popsize=popsize, constraints=constraints, netsize.adj=if(nsa) adj.update, call=ergm.ego_call)

if(do.fit){
control$ergm$force.main <- TRUE

ergm.fit <- ergm(ergm.formula, target.stats=m, offset.coef=ergm.offset.coef, constraints=constraints, ..., eval.loglik=FALSE,control=control$ergm)
if(is.curved(ergm.fit)) warning("Theory of egocentric inference and particularly of variance calculation for curved ERGMs is not well understood; standard errors might not be reliable.")
Expand Down

0 comments on commit 0ac23f1

Please sign in to comment.