0

I want to set the seed number in ergm, so that my network analysis is reproducible, but when I run

main_sup <- ergm(supnet ~ edges + nodefactor("work") + 
                     nodefactor("income") + nodefactor("edu") + 
                     nodefactor("religious") + nodefactor("gender") + 
                     nodecov("age") + edgecov(kin_sup,"kinweight"), 
                 control.ergm(seed = 567))

I get this error:

Error in eval(e, parent.frame()) : object 'name' not found'
Mikael Jagan
  • 9,012
  • 2
  • 17
  • 48
cccbc
  • 13
  • 3

1 Answers1

0

I realized that I forgot to name the control argument, as in:

control = control.ergm(seed = 567)
Mikael Jagan
  • 9,012
  • 2
  • 17
  • 48
cccbc
  • 13
  • 3