Latent Order Logistic Graph Models

Estimation of Latent Order Logistic (LOLOG) Models for Networks. LOLOGs are a flexible and fully general class of statistical graph models. This package provides functions for performing MOM, GMM and variational inference. Visual diagnostics and goodness of fit metrics are provided. See Fellows (2018) for a detailed description of the methods.

LOLOG is a general framework for generative statistical modeling of graph datasets motivated by the principle of network growth. This class of models is fully general and terms modeling different important network features can be mixed and matched to provide a rich generative description of complex networks.


  • The mathematical details are outlined in a technical paper.
  • For a more detailed description of what can be done with the lolog package, see the introductory vignette.
  • An application of LOLOG modeling to a UK Faculty data set with comparisons to an ERGM fit can be found here.


The Easy Way

To install the latest release from CRAN run:


The Slightly Less Easy Way

To install the latest development version from the github repo run:

# If devtools is not installed:
# install.packages("devtools")


If this is your first R source package that you have installed, you’ll also need a set of development tools. On Windows, download and install Rtools, and devtools takes care of the rest. On a Mac, install the Xcode command line tools. On Linux, install the R development package, usually called r-devel or r-base-dev. For details see Package Development Prerequisites.

Using The Package


# Delete 2 vertices missing group
delete.vertices(ukFaculty, which( %v% "Group")))

# A dyad independent model
fitind <- lolog(ukFaculty ~ edges() + nodeMatch("GroupC") + nodeCov("GroupC"))


Development Practices and Policies for Contributers

Using Eclipse

This package is set up as an Eclipse project, and the C++ code can be compiled and run without reinstalling the package. To set up in your eclipse IDE, select import project -> General -> Existing Projects into Workspace and select the lolog directory.

This project was set up following the methods outlined in:


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.3 by Ian E. Fellows, 7 months ago

Browse source code at

Authors: Ian E. Fellows [aut, cre] , Mark S. Handcock [ctb]

Documentation:   PDF Manual  

MIT + file LICENCE license

Imports network, parallel, ggplot2, reshape2, intergraph, Matrix

Depends on methods, Rcpp

Suggests testthat, inline, knitr, rmarkdown, ergm, BH, igraph

Linking to Rcpp, BH

See at CRAN