I am currently developing an R package which introduces random effects into a network model. This allows researchers to model network formation as a two-stage process. Please visit my github for the package.