Abstract
There has been a great deal of interest recently in the modeling and simulation of dynamic networks, i.e., networks that change over time. One promising model is the separable temporal exponential-family random graph model (ERGM) of Krivitsky and Handcock, which treats the formation and dissolution of ties in parallel at each time step as independent ERGMs. However, the computational cost of fitting these models can be substantial, particularly for large, sparse networks. Fitting cross-sectional models for observations of a network at a single point in time, while still a non-negligible computational burden, is much easier. This paper examines model fitting when the available data consist of independent measures of cross-sectional network structure and the duration of relationships under the assumption of stationarity. We introduce a simple approximation to the dynamic parameters for sparse networks with relationships of moderate or long duration and show that the approximation method works best in precisely those cases where parameter estimation is most likely to fail—networks with very little change at each time step. We consider a variety of cases: Bernoulli formation and dissolution of ties, independent-tie formation and Bernoulli dissolution, independent-tie formation and dissolution, and dependent-tie formation models.
Keywords: Separable temporal exponential random graph models (STERGMs), model fitting, exponential random graph models (ERGMs), Markov chain Monte Carlo
1 Introduction
Dynamic social networks—those in which relations form and break over time—have long been an area of research interest, to understand both the nature of the dynamics themselves (Holland and Leinhardt, 1977; Runger and Wasserman, 1980; Wasserman, 1980; Frank, 1991; Doreian and Stokman, 1997) and their implications for processes like the flow of information or disease (Morris and Kretzschmar, 2000; Mercken et al., 2009; Sasovova et al., 2010; Jack et al., 2010; Weerman, 2011). This field remains active, with a variety of models for dynamic networks being explored (Aral et al., 2009; Snijders, 2001; Snijders et al., 2007; Snijders and Koskinen, 2013).
Recently, the exponential-family random graph modeling (ERGM) framework has become a popular approach for conducting inference on network structure, due to its generalizability and its basis in exponential family theory, a common and parsimonious statistical approach (Frank and Strauss, 1986; Strauss and Ikeda, 1990; Wasserman and Pattison, 1996; Robins and Pattison, 2001; Snijders et al., 2006; Robins and Morris, 2007; Hunter et al., 2008a, for example). For many years, the application of the ERGM framework was limited to static, or cross-sectional, network datasets. However, recent developments have extended ERGMs to the modeling of dynamic networks, including the separable temporal ERGM (STERGM) approach of Krivitsky and Handcock (2012), among others (Snijders and Koskinen, 2013). The STERGM is a form of discrete temporal ERGM of Hanneke et al. (2010) that independently models the formation and dissolution of ties over time. This allows for independent control of the incidence of tie formation and of relational duration. This article considers applications of the STERGM where the available data consist of measures of both the cross-sectional network structure and the duration of relationships. These data are used to model the dynamic evolution of the network under the assumption that they come from a stochastic process that has reached equilibrium. In this paper, we concentrate on examples in which the set of actors and their attributes remains fixed while their pairwise relationships can stochastically form and dissolve. The approach described in this paper can be easily extended to simulating networks with changing sets of actors, using the approach of Krivitsky et al. (2011).
While Krivitsky and Handcock (2012) and Hanneke et al. (2010) develop methods to fit dynamic ERGMs to panel data using conditional MLE (CMLE), network panel data are often not available about networks of interest, with sexual partnership networks being a major example. Krivitsky (2012a) fits STERGMs to cross-sectional and egocentric network data using gradient descent to find the generalized methods of moments estimator (GMME) for the parameters, an approach that has been used in multiple applications (e.g., Morris et al., 2009; Goodreau et al., 2010). In each of these cases, parameters for the relational dissolution process were assumed, and starting values for the estimation of the formation model were obtained from fitting a traditional static ERGM on the cross-sectional data. Although this approach produces stable parameter estimates for these specific cases, in general it su ers from two crucial limitations. First, it can be very time-consuming and memory-intensive, especially for networks that are large and sparse and have long relational durations. For example, fitting a STERGM in this way on a network of 10,000 nodes with a relational duration of about 1100 time steps and a mean degree of 0.4 takes several days on a high-performance UNIX cluster and is not amenable to parallelization. Moreover, as is often the case with ERGMs more generally, the model fitting process can be unstable if the starting values are far from the true parameters, and may fail to converge even when the model is good (Hummel et al., 2012).
In this paper, we give technical justification for a novel approximation method using parameter estimates from a static ERGM and estimates of the duration of relationships to generate starting values for the existing algorithm. In practice, we have found that this simple adjustment results in substantially better performance than fitting a STERGM using the traditional approach. Not only does the algorithm generally converge much faster to reasonable parameter estimates when started from the new values, but in many cases the adjusted starting values themselves are an adequate estimate of the STERGM parameters, and it is unnecessary to run the fitting algorithm. The approach requires the same information used for the existing approach—a single cross-sectional network or target cross-sectional statistics plus mean relational duration—and is found to work best in precisely those cases when STERGM estimation is slowest and most unstable.
The approximation procedure described in this paper was motivated by challenges encountered in two large network simulation projects. Both projects attempt to model the potential e ect of interventions to prevent the spread of HIV over sexual networks. We use one of these projects, which models the HIV epidemic among men who have sex with men (MSM) in North and South America and the potential e ect of a variety of prevention interventions on those epidemics (Goodreau et al., 2012) as a motivating example in this paper (see Sections 4.2 and 5.1).
In Section 2, we give a short description of the separable temporal exponential random graph model and the estimation thereof using cross-sectional or egocentric network data and independent data on relational duration. In Section 3, we show that a simple correction to the static ERGM parameters performs well as an approximation to STERGM parameters in the Bernoulli model case. In Section 4, we extend this to relational independence models for formation and dissolution, with an application to modeling the spread of HIV among men who have sex with men in the dyadic independence case. Section 5 discusses the utility of the approximation in the relational dependence case through simulations and an extension of the application.
2 Brief description of the STERGM
We first review the ERGM framework for cross-sectional or static networks, observed at a single point in time. Following the notation of Krivitsky and Handcock (2012), let be the set of potential ties among n nodes, ordered for directed networks and unordered for undirected. We can represent a network y as a set of ties, with the set of possible sets of ties, , being the sample space: . Let yij be 1 if (i, j) ∈ y—a relation of interest exists from i to j—and 0 otherwise.
The network also has an associated covariate array X containing attributes of the nodes, the potential ties, or both. An exponential-family random graph model (ERGM) represents the pmf of Y as a function of a p-vector of network statistics g(Y, X), with parameters , as follows:
(2.1) |
where the normalizing constant is a summation over the space of possible networks on n nodes, . Where and X are held constant, as in a typical cross-sectional model, they may be suppressed in the notation. Here, on the other hand, the dependence on and X is made explicit.
In modeling the transition from a network Yt−1 at time t − 1 to a network Yt at time t, the separable temporal ERGM assumes the formation and dissolution of ties to occur independently from each other within each time step, with each half of the process modeled as an ERGM. For two networks (sets of ties) , let if any tie present in y′ is also present in y. Define , the set of networks that can be constructed by forming ties in y; and , the set of networks that can be constructed by dissolving ties in y.
Given yt−1, a formation network Y+ is generated from an ERGM controlled by a p-vector of formation parameters θ+ and formation statistics g+(y+, X), conditional on only adding ties:
(2.2) |
A dissolution network Y− is simultaneously generated from an ERGM controlled by a (possibly di erent) q-vector of dissolution parameters θ− and corresponding statistics g−(y−, X), conditional on only dissolving ties from yt−1:
(2.3) |
The cross-sectional network at time t is then constructed by applying the changes in Y+ and Y− to yt−1: Yt = Yt−1 υ ((Y+ \ Yt−1) \ (Yt−1 \ Y−)).
This transition process is ergodic: a series of networks generated from this process converges to an equilibrium distribution of networks Pr (Yt = y; θ+, θ−). To the extent that the observed network y is a consequence of the long-run evolution of the social process being modeled, it may be modeled as a draw from this equilibrium distribution.
The realism of the assumption of separability depends to a certain extent on the definition of a time step. If moving from t − 1 to t represents a year's worth of network evolution, this assumption will be less plausible than if it represents a daily change.
Note that the underlying, network-to-network transition process does not change over time, but rather the set of existing relationships evolves in a manner consistent with the stochastic process as specified by θ+, θ−, and the particular statistics that make up g+(y+, X) and g−(y−, X).
Implicit in this model is a Markovian assumption that the survival of a relationship from time t to t + 1 is, conditional on its existence at t, independent of what happened before t. Also implicit under a relational independence dissolution model is a geometric distribution for the relational duration for each tie, with mean given by the reciprocal of the probability of survival for that tie. The probability of survival may vary across dyads; however, under a strict Bernoulli dissolution model, in which all ties have an equal probability (1 − p) of survival, relational durations will follow a geometric distribution with mean duration d and probability of dissolution per time step p = 1/d. This process can be captured by including a single statistic for the edge count in g−(y−, X); its parameter θ− should equal the log-odds of a relation surviving the time step (Krivitsky, 2012b), i.e., θ− = log[(1 − p)/p] = log(d − 1).
We assume from now on that the average duration(s) are specified and thus that θ− is known. This would be an appropriate assumption, for instance, if we wished to simulate a dynamic network from a cross-sectional observation of a network together with information on the duration of ties, as with Morris et al. (2009). In our examples, we take θ− to be a scalar, implying a single distribution of durations for the whole population, but the theory developed supports extension to any relational independence model for dissolution.
Recall that we are fitting a dynamic model only to information about a single cross-sectional network, with some tie duration information. In that setting, to the extent that an assumption can be made that the observed network is a draw from the stationary distribution of the STERGM process (which is ergodic), parameter values θ+ may be estimated using the generalized method-of-moments approach. The generalized method-of-moments estimator (GMME) in the static ERGM is the solution to the equation Eθ {g(Y, X)} = g(y, X), where y is the observed network and Eθ {g(Y, X)} is the expected value of the network statistics of interest under the stationary distribution induced by θ.
Parameter estimation is accomplished using the procedure for obtaining the GMME described in Krivitsky (2012a), with a modification to the selection of starting values. Initial parameter estimates are either directly specified or generated from simple estimation methods, such as estimating parameters in a cross-sectional model for dyadic independence terms and setting dependence terms to 0.
At the core of the algorithm is estimation of the moments of the network statistics of interest Eθ (g(Y, X)) by simulation. If the network evolves slowly, successive networks drawn from the model are likely to be highly autocorrelated. Thus, to obtain a su ciently precise estimate of Eθ (g(Y, X)) we must simulate a very long series of such networks—a time-consuming process.
As is common in ERG modeling, if the starting values are far from the GMME, the distribution of sampled networks is likely to be degenerate, making it next to impossible to estimate the necessary moments. Consequently, the algorithm fails to converge in a feasible timeframe. Thus, we require a value for that produces networks that are reasonably similar to the target. We introduce one such starting point below in Section 3.
Throughout this paper, we use the statnet suite of packages (Handcock et al., 2008) in R (R Development Core Team, 2011) for simulation and model fitting.
3 Bernoulli models
We first consider the simplest case, a STERGM with a Bernoulli model for both formation and dissolution of edges. In this case, each process is controlled by a single parameter, giving an equal probability of formation (or dissolution) for all non-edges (or extant edges). We can derive the value and corresponding GMME, , of the formation parameter θ+ as a function of edge duration and edge density, where we define the latter to be the ratio of the number of existing edges to the total number M of possible edges. We wish to justify the following approximation to for a particular fixed θ−:
(3.1) |
where d is the target edge density we want to achieve at equilibrium.
Since parameters in the STERGM control either formation or dissolution independently, we can interpret logit−1(θ+) = eθ+ (1 + eθ+)−1 as the expected fraction of null edges that will become ties, while logit−1(θ−) is the expected fraction of existing edges that will survive the time step. Let m(t) be the (random) edge density of the network at time t. At equilibrium, the average numbers of ties created and destroyed are the same, so
Hence, if we let μ = E[m(t)], where we assume that μ does not depend on t because the network is at equilibrium,
(3.2) |
Thus, the formation parameter we wish to estimate and its corresponding GMME are
(3.3) |
respectively, where d is the target edge density. Recall from Section 2 that the dissolution parameter θ−, a simple transformation of the average edge duration, is assumed known.
3.1 Derivation of the approximation
To verify Approximation (3.1), we first argue that as the number of nodes n increases, the density m(t) at equilibrium should converge to zero in probability. This assumption is justified by the fact that for most social phenomena, mean degree is likely to stay roughly constant even as the network grows (Krivitsky et al., 2011). For example, people living in a town of 10,000 should have roughly the same numbers of relationships per person as those in a city of 10 million, and not three orders of magnitude fewer. We may express this assumption probabilistically by postulating that for a fixed time t after equilibrium is achieved, the (random) mean degree remains bounded in probability as n → 1. Since mean degree = (n − 1)m(t), this implies that as n → ∞.
The verification of Approximation (3.1) also requires the assumption that θ− → ∞. Since θ− determines average duration of relationships in terms of a number of steps in the evolution of the network, we can make this more plausible in practice, when dealing with a network of fixed size, by changing the time scale so that this average is long (e.g., equate a single step to a day instead of a month).
Combining Equations (3.1) and (3.3) gives
(3.4) |
where we suppress the fixed equilibrium time t to simplify notation. The right hand side of Equation (3.4) clearly tends to zero as θ− → ∞ as long as m stays bounded away from 1, so the fact that yields the following result:
Proposition 1. For a Bernoulli formation and Bernoulli dissolution model, if mean degree is assumed bounded in probability then as n → ∞ and θ− → ∞.
3.2 Accuracy of approximation
Figure 1 shows the di erence between the approximation and the GMME for densities ranging from 0 to 0.5 and durations ranging from 2 to 25 time steps. We can see that the accuracy of the approximation improves extremely rapidly with duration and verify that when d = 0.5, approximation (3.1) is exact. For any network density in this range, the approximation error is less than 0.2 for any duration longer than 6 time units, under 0.1 for durations over 11 time units and under 0.05 for durations over approximately 20 time units. Recall that time units here are not tied to calendar time, so a su ciently long mean relational duration can be achieved by changing the scale on which relational duration is measured. If we want relationships to last on average one year, we could use the analytic approximation with confidence if we parameterized durations in terms of months for model fitting and simulation. This is limited only by computing resources: as each discrete time step represents a smaller and smaller amount of time, the number of time steps that need to be simulated to advance a given time period increases.
Recall that in the proof we require both that duration be su cently long and network density be su ciently small. In fact, as can be seen in Figure 1, it appears that for lower density a slightly longer duration is required to achieve a good approximation using this method. This could make the method less useful in very low-density situations, unless the average relational duration is long. While this result may seem counter-intuitive at first, Equation 3.4 shows that the speed of the approximation depends on the observed density; for m(t) close to 0.5, the speed is faster than for m(t) close to either 0 or 1. Thus for very low or very high density, a longer average duration is needed to achieve a given margin of error in the approximation. In contrast, the expected density (arguably a more important metric than the parameter value itself) is well approximated for any duration for either density close to 0.5 or very low density; it is only in the midrange where a su ciently long duration must be reached to obtain reasonable expected density.
4 Relational independence models
In this section, we extend the above results to models with relational independence terms in the formation and dissolution models. In a cross-sectional ERGM, relational independence means that the states of all dyads are stochastically independent (Hunter et al., 2008b), but we do not assume independence across time steps. In the case of undirected ties, relational independence is equivalent to dyadic independence.
4.1 Derivation of the approximation
We now consider STERGMs with relational independence models for formation and dissolution. Under relational independence, the vectors of network statistics are
(4.1) |
where and are arbitrary vectors of attributes for the potential tie (i, j) of length p and q, respectively, and is the indicator that this tie is contained in y+ (y−). It is common that the may be written as some function of nodal covariates defined for i and j. For instance, the Euclidean distance between nodes i and j may be expressed as a function of their location vectors. In general, however, may include entries that cannot be expressed in this way (e.g., some non-Euclidean “distances” such as shortest road distance or average driving time between locations i and j).
We make the additional assumptions that q ≤ p and the first q elements of are simply for all i and j. This assumption may be justified theoretically because in many processes we are interested in modeling, the formation of relationships is more complicated than their dissolution. For example, the creation of spousal relationships through marriage is a complex matching problem, but their dissolution is simplified because there is only one possible tie to dissolve. In the examples used in this paper, the distribution of relationship lengths can be reasonably modeled by a simple geometric distribution—i.e., a Bernoulli dissolution model. Krivitsky and Handcock (2012) discuss this issue further.
Exploiting our assumption that , we may generalize the approach of Equation (3.1) by following these steps:
Calculate the maximum likelihood estimator, say , for a cross-sectional ERGM for the observed network using su cient statistics ;
- Define
(4.2)
In other words, subtract the θ− vector from , where the former must first be padded with p−q zeros so that the dimensions agree. We shall take to be the approximation to the GMME .
The situation of Section 3 is a special case, since in that instance we have p = q = 1 and Wij = 1 for all (i, j). This means that the estimate may be found in closed form, namely, as in Equation (3.1).
We may justify the procedure above by the following heuristic argument, which may be made rigorous by a proof analogous to that of Section 3.1. First, notice that each Yij may be viewed as an independent two-state Markov chain with transition probability matrix
where and . Letting Oij denote the odds of Yij = 1 at equilibrium, the equilibrium distribution for Yij may be easily shown to satisfy
(4.3) |
For instance, in the case where the Yij are identically distributed, as in Section 3, the odds are merely μ/(1 − μ) and so Equation (4.3) reduces to Equation (3.2). The idea is that we may estimate Oij via logistic regression if we assume that we observe a network at equilibrium. This is accomplished by step 1 above; after fitting the cross-sectional ERGM, our estimate is simply . Substituting for Oij and solving for then yields
(4.4) |
When , the term on the right hand side of Equation (4.4) is negligible—we assume by sparsity that Oij will typically be small—and so we obtain
This approximation must hold for each (i, j); furthermore, since we assumed that , we are led to the approximation of Equation (4.2). Our earlier assumption that θ− → ∞ in the case must now be replaced by the assumption that , which is how we can justify the approximation resulting from .
We find that in practice, this general method works well for arbitrary ; we explore an application in Section 4.2. A further open question, which we explore in Section 5, is whether a similar technique applies even when the assumption of relational independence is violated.
4.2 Application: Modeling HIV spread among MSM in the US
To demonstrate the use of this approximation method in practice, we present an example from the PUMA (Prevention Umbrella for MSM in the Americas) project, which examines the potential impact of a variety of behavioral and biomedical interventions for men who have sex men (MSM) in the United States, Peru and Brazil. Our example stems from the baseline US model, which aims to model transmission prior to the roll-out of additional interventions (Goodreau et al., 2012). In the US and many other nations, HIV remains concentrated among MSM, with well over half of all new HIV diagnoses within this community (Hall et al., 2008). Rates of HIV incidence are on the rise among young MSM, and especially among young Black and Latino MSM (Prejean et al., 2011). For this reason, the model considers sexual network data disaggregated into three race/ethnicity categories: Blacks, Latinos, and all others.
As part of developing simulation models of HIV transmission among MSM, we use a separable temporal ERGM to model main partnerships. These are defined in our study as any relationship in which men feel a close emotional connection, regardless of the type of relationship (e.g. casual dating, long-term committed partnership). Given this, the observed distribution of relationship duration is strongly right-tailed with a mode near 0. For convenience, we model this with the exponential distribution, indicated by using a constant θ− as the sole parameter in the dissolution model. Casual contacts are modeled using a cross-sectional ERGM not discussed here. To demonstrate the performance of the approximation for relational independence models, we begin by specifying the partnership formation part of the ERGM with an edge count term to control density, an individual attribute of race to allow for di erential rates of partnership formation across races, and partnership-level matching on race, age and preferred sexual role (strictly insertive, strictly receptive, or versatile). The formation model is thus
where yij = the pair of persons i and j, and yij = 1 indicates they are partners; = the rest of the pairs in the network, excluding the yij pair; e = total number of partnerships of all types in the network; ur = the number of partnerships of persons of race r; mr = the number of partnerships with both partners of race r; mc = the number of partnerships with both partners of role class c (which can take values i = strictly insertive or r = strictly receptive); k and l represent the actors in each main partnership. The parameters for matching on sexual role are fixed at negative infinity to enforce a prohibition on sexual encounters between either two strictly insertive men or two strictly receptive men.
The model for dissolution of partnerships is a simple Bernoulli model with parameter determined by the average partnership duration. The mean duration is approximately 3.1 years for all main partnerships. This, together with the fact that the model is stepped forward day by day, yields a dissolution parameter θ− = log(3.1 · 365 − 1) = 7.0.
Estimating the formation parameters for this model on a network of 10,000 nodes using the traditional approach outlined in Section 1 is extremely computationally intensive—on the order of days to weeks. We use instead the adjustment to the static ERGM fit discussed above as parameter estimates. We simulate a network forward in time using the parameters generated and compare the distribution of simulated network statistics to the target values taken from the observed network.
Figure 2 shows the standardized deviations of the simulated cross-sectional network statistics from their target values over the evolution of the network for 10,000 time steps. Counts of the total number of partnerships of nodes of a certain type are referred to as “node factor” terms, while counts of edges with both nodes of the same type are referred to as “node match” terms. Note that the node match terms for role class are excluded from the plot since they are coerced to be zero at all times. Since the simulation follows all steps of the MCMC chain without thinning, we expect to see some autocorrelation and “walks” away from the target over time; however, the observed statistics at each cross-section are largely within two standard deviations of the target. This indicates that the approximation has yielded reasonable estimates of the model parameters.
We expect, given the long duration and the analytic results above, that the approximate parameter estimates would be adequate in this case, where the models for formation and dissolution are both relational independence models.
5 Relational dependence formation models
In this section, we extend our exploration of the approximation to a case with a dyadic dependent formation model. This case is generally more socially realistic than those we have investigated thus far, but analytical solutions to estimation are far less tractable. As Krivitsky (2012a) discusses, any dyadic dependence, whether within a time step (where for (i, j) ≠ (i′ , j′), such as that fit by Krivitsky, or between time steps (where and ), such as that proposed by Hanneke et al. (2010), prevents the evolution of the network from being represented as in Section 4.1, with each potential tie evolving independently as a two-state Markov chain. Instead, in some cases it appears that this stationary distribution is even less tractable than that of an intractable normalizing constant, a point addressed by Hunter and Hand-cock (2006). Snijders (2001, Prop. 1) discusses a related result for continuous-time Markov models for network evolution: If the model is constrained to treat formation and dissolution symmetrically—that is, g+ ≡ g− and θ+ ≡ θ−—then the stationary distribution is an ERGM, though this view of the model is less interpretable than the STERGM (Krivitsky and Handcock, 2012). Although it is not hard to imagine pathological cases in which dyadic dependence formation models have tractable stationary distributions—e.g., by disallowing dissolutions altogether so that basically any formation model leads eventually to a complete network—we do not consider the general theoretical question of when such models may be tractable in the current article.
Instead, we confine our attention to empirical simulation analyses, focusing on a case of undirected networks on 1000 nodes with a mean degree of 2. The model we choose implies that over time, an average of 20 percent of nodes should have degree 1, and 35 percent should have degree 2. In such a network, the approximate expected number of triangles is 1. We model multiple networks varying in their numbers of triangles, from 1 to 100 (at intervals of 10 except for the lowest value, 1). By increasing the number of triangles we thus create networks that depart more strongly from relational independence, and expect that these networks will be less well fit by the approximation.
We fit a model including total edge count, count of nodes of degree 1 and 2, and the geometrically-weighted edgewise shared partner (GWESP) count with the parameter α set to 0.5. This last term was chosen to represent triad closure (sometimes called transitivity), since a simple count of triangles cannot capture empirical patterns of triad closure in networks of this size (or even moderate size) and mean degree (Hunter and Handcock, 2006; Robins et al., 2007; Goodreau et al., 2009). The degree terms and the GWESP term are all dyad dependent. Note that expected density is constant over all simulations, and there is no constraint on degrees other than 1 and 2. The model for dissolution is Bernoulli with θ− = log(d − 1). We examine the e ect of duration by taking the average duration of ties ranging from d =15 to 50 time steps at 5-step intervals. This yields a total of 88 scenarios for simulation.
For each scenario, we do the following 50 times:
Simulate a network with appropriate degree distribution
Fit a cross-sectional ERGM to each
Find by subtracting θ− = log(d − 1) from the coe cient on edge count, as discussed in Section 4.1 for relational independence models
Use as initial values for a dynamic model fit using gradient descent (Krivitsky, 2012a)
Figure 3 gives the mean of the di erences between the approximated and estimated STERGM parameters. We see that the di erences are generally largest for short duration and very high number of triangles. The former is to be expected given the asymptotic nature of our results, and the latter indicates that models that depart more from relational independence are indeed less well fit by the approximation methods. In general, the magnitudes of the di erences for edges and degree terms are under 0.2 for models with at least moderate duration, regardless of the target number of triangles. The GWESP term exhibits di erences of a larger magnitude when duration is short and the number of triangles is extreme.
The question remains, however, whether the observed di erences are large enough to impact the characteristics of networks simulated from the model, which can be used either as a measure of goodness-of-fit of the model or for simulation studies. To examine this, we simulated networks for 5000 time steps from a randomly selected vector of the approximated parameter estimates. Figure 4 shows the percent di erence between the mean network statistics from the last 4000 time steps (the first 1000 were discarded as burn-in) and the target statistics for each network.
We can see that the bias in the cross-sectional network statistics decreases consistently with longer duration, regardless of the number of triangles, as we would expect given the asymptotic results for dyad independence models. On the other dimension, the bias in the number of triangles is more noisy, but shows a clear trend toward increasing downward bias as the number of triangles increases. Thus, the approximation can be quite bad for short durations, but for the majority of the scenarios the di erences are rather small. It also seems likely that in practice few applications would have durations even as short as those we use in this simulation, and often much longer, making it more likely that the use of the approximation method will be satisfactory.
In a case where the approximation is not statisfactory, however, using the estimates from the approximation results in radically improved fitting time for the STERGM. For example, in an analogous case to these simulations with a mean duration of 5 time steps and just one triangle, we see that the simulated network statistics using the approximated values are o by 10–30%, so we would likely not want to use the approximation itself as our parameter estimates. If we run a traditional STERGM estimation approach for this case, it takes over five hours to complete the fitting process. If, however, we use the approximated values as the starting point for the fitting algorithm, the fit completes in 1.7 minutes.
5.1 Application: Modeling the spread of HIV among MSM in the US, revisited
In Section 4.2, we demonstrated the use of the adjustment to the static ERGM fit as model parameters in a relational independence model. In reality, the degree distribution is of vital importance when modeling sexual networks, particularly when modeling the spread of disease over said networks. We would like to add a term for the number of men in two simultaneous relationships to control for the tendency for or against forming concurrent partnerships.
The new formation model is then given by
where we have added a term d2 = the number of actors in exactly two main partnerships at a given time. Note that this is a dyad dependent term. The model also enforces a constraint of no more than two main partnerships at a time, another form of dependence.
Figure 5 shows the standardized deviations of the simulated cross-sectional network statistics from their target values over the evolution of the network for 10,000 time steps using the relational dependence model. The parameter values used for network simulation here are those given by the approximation to the full dynamic model fit given in Section 4.1. In this case, the simulated network including the dyad dependent degree 2 term has fewer extreme deviations from the target statistics than were observed in the dyad independence case. This should not be over-interpreted, since each simulation is only one realization of a stochastic process. We can say, however, that the network evolution over time is consistent with the cross-sectional data used to generate the target network statistics when using the approximation in place of a full dynamic model fit.
6 Conclusion
This paper introduces a useful approximation method to generate estimates of the STERGM dynamic model parameters that is much less computationally intensive than the full algorithm used for estimation in the dynamic model, when modeling cross-sectional or egocentric network data with independent data on the duration of relationships. Using this type of data to model network evolution requires an assumption that the stochastic process driving network evolution has reached a stationary distribution. It would be inappropriate, therefore, in a situation where the underlying rules of the stochastic process are changing, such as in the midst of an intervention on network attributes (e.g., rate of partner change), or where marginal distributions of network statistics are changing (because the process has not yet reached equilibrium).
We assume that dissolution parameters are fixed as a function of the average durations of relationships, and approximate the STERGM formation parameters by subtracting these dissolution parameters from the corresponding elements of the vector of parameter estimates obtained by estimating the formation model with a cross-sectional ERGM. Even in cases where the approximation itself is inadequate as an estimator, using the approximation estimates as a starting point for the algorithm greatly increases the likelihood of convergence in the estimation procedure. This approach is implemented in the tergm package for modeling dynamic networks in the statnet suite of packages.
The proofs given in this paper assume relational independence models and that the model terms are categorical. However, network modelers, and particularly those using ERGMs, are typically most interested in cases that involve relational dependence, as these are the instances in which an explicit network approach has the most to o er over other frameworks. We were prevented from obtaining tractable proofs in the case of models with relational dependence either within or between time steps, wherein the stationary distribution can only being defined recursively. However, as we see in the examples, the approximation works well even for non-categorical terms and dependence models in many cases, under the same conditions as when it worked well for categorical and independence models (long durations, small density). This holds true as well in the many additional cases that we have explored in practice, which have used a wider array of dependence terms than those we show in this paper. We thus hope that this work will serve as a starting point for further theoretical and empirical exploration of this method.
The asymptotic nature of the results suggests that they are most useful for duration su ciently long and density su ciently small. In one sense, it is quite easy to deal with the issue of duration; since duration here refers to MCMC steps, we could in theory rescale the relational duration so that one MCMC step equals an arbitrarily small unit of real time. Since θ− and θ+ must balance each other to maintain the density and other targeted features of the network, this will be limited in reality to a range where θ+ does not approach −∞, however the assumptions necessary for the approximation should be satisfied well before this level of resolution in time is reached. An additional advantage of equating an MCMC step to a small unit of time is improved plausibility of the assumption of separability of the formation and dissolution processes within MCMC steps. This poses computational di culties, however, if the model is to be used to simulate dynamically evolving networks, as it increases the number of simulation steps needed to produce a particular duration proportionately. In some cases, such as the example used in the application, there may be an external reason why equating an MCMC step to a particular time unit is necessary. Given the likelihood of computational or other constraints, further work is needed to ascertain in exactly which cases it is appropriate to use the approximation method, and when it is advisable to fit the STERGM.
As we demonstrate in the HIV modeling examples, it is important when using this approximation to perform model diagnostics by simulating one or more dynamic networks from the model parameters and checking to see that the cross-sectional network statistics are varying stochastically about the target statistics. Doing so is a minimum check that the approximation has adequately captured the su cient statistics that a full estimation would be guaranteed to capture, and does not preclude additional diagnostics to assess model fit, e.g. those in Hunter et al. (2008a). This check is particularly important if one wishes to use the approximation as a final parameter estimate instead of merely a starting point for a full dynamic model fit.
The initial development of ERGMs o ered enormous promise as a generalized framework for the statistical modeling of cross-sectional social networks. However, years of research and development were needed to identify and overcome a variety of issues to ensure that their practical application lived up to this promise. The recently proposed STERGM class of models o ers similar promise for dynamic social networks. Since STERGMs build upon ERGMs, there is reason to hope that most of the issues that will arise in their application will parallel those that have already been investigated, and thus will be quick to resolve. At least one new issue has already arisen, however—the particularly high computational burden needed to fit these models under certain conditions—which this paper explains and then identifies a solution to. We hope that resolving this issue will position STERGMs to be of as great general applicability and usefulness as ERGMs have proven. Our concurrent and successful application of STERGMs in a number of ongoing research projects, made possible by the work laid out in the paper, suggest to us that this will indeed be the case.
Acknowledgments
This work is supported by NIH grants R01–GM083603, R01–HD068395, and R01–AI083060. We are grateful to Martina Morris, Skye Bender-deMoll, and the rest of the University of Washington network modeling team for helpful discussions.
References
- Aral S, Muchnik L, Sundararajan A. Distinguishing influence-based contagion from homophily-driven diffiusion in dynamic networks. Proceedings of the National Academy of Sciences of the United States of America. 2009;106(51):21544–21549. doi: 10.1073/pnas.0908800106. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Doreian P, Stokman FN, editors. Evolution of social networks. Routledge; 1997. [Google Scholar]
- Frank O. Statistical analysis of change in networks. Statistica Neerlandica. 1991;45(3):283–293. [Google Scholar]
- Frank O, Strauss D. Markov graphs. Journal of the american Statistical association. 1986;81(395):832–842. [Google Scholar]
- Goodreau S, Cassels S, Kasprzyk D, Montao D, Greek A, Morris M. Concurrent partnerships, acute infection and hiv epidemic dynamics among young adults in zimbabwe. AIDS and Behavior. 2010:1–11. doi: 10.1007/s10461-010-9858-x. 10.1007/s10461-010-9858-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Goodreau SM, Carnegie NB, Vittinghoff E, Lama JR, Sanchez J, Grinsztejn B, Koblin BA, Mayer KH, Buchbinder SP. What drives the US and Peruvian HIV epidemics in men who have sex with men (MSM)? PLoS ONE. 2012;7(11):e50522. doi: 10.1371/journal.pone.0050522. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Goodreau SM, Kitts JA, Morris M. Birds of a feather, or friend of a friend? using exponential random graph models to investigate adolescent social networks. Demography. 2009;46(1):103–125. doi: 10.1353/dem.0.0045. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hall HI, Song R, Rhodes P, Prejean J, An Q, Lee LM, Karon J, Brookmeyer R, Kaplan EH, McKenna MT, Janssen RS. Estimation of HIV incidence in the United States. JAMA. 2008;300(5):520–529. doi: 10.1001/jama.300.5.520. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Handcock MS, Hunter DR, Butts CT, Goodreau SM, Morris M. statnet: Software tools for the representation, visualization, analysis and simulation of network data. Journal of Statistical Software. 2008;24(1):1–11. doi: 10.18637/jss.v024.i01. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hanneke S, Fu W, Xing EP. Discrete temporal models of social networks. Electroninc Journal of Statistics. 2010;4:585–605. [Google Scholar]
- Holland PW, Leinhardt S. A dynamic model for social networks. Journal of Mathematical Sociology. 1977;5(1):5–20. [Google Scholar]
- Hummel RM, Hunter DR, Handcock MSH. Improving simulation-based algorithms for fitting ERGMs. Journal of Computational and Graphical Statistics. 2012;21(4):920–939. doi: 10.1080/10618600.2012.679224. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hunter DR, Goodreau SM, Handcock MS. Goodness of fit of social network models. Journal of the American Statistical Association. 2008a;103(481):248–258. [Google Scholar]
- Hunter DR, Handcock MS. Inference in curved exponential family models for networks. Journal of Computational and Graphical Statistics. 2006;15(3):565–583. [Google Scholar]
- Hunter DR, Handcock MS, Butts CT, Goodreau SM, Morris M. ergm: A package to fit, simulate and diagnose exponential-family models for networks. Journal of Statistical Software. 2008b;24(3):1–29. doi: 10.18637/jss.v024.i03. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jack S, Moult S, Anderson AR. An entrepreneurial network evolving: Patterns of change. International Small Business Journal. 2010;28(4):315–337. [Google Scholar]
- Krivitsky PN. Modeling of dynamic networks based on egocentric data with durational information. Pennsylvania State University Department of Statistics; 2012a. Technical Report 2012-01. [Google Scholar]
- Krivitsky PN. Modeling tie duration in ergm-based dynamic network models. Pennsylvania State University Department of Statistics; 2012b. Technical Report 2012-02. [Google Scholar]
- Krivitsky PN, Handcock MS. A separable model for dynamic networks. Journal of the Royal Statistical Society: Series B. 2012 doi: 10.1111/rssb.12014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Krivitsky PN, Handcock MS, Morris M. Adjusting for network size and composition effects in exponential family random graph models. Statistical Methodology. 2011;8(4):319–339. doi: 10.1016/j.stamet.2011.01.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mercken L, Snijders TA, Steglich C, de Vries H. Dynamics of adolescent friendship networks and smoking behavior: Social network analyses in six european countries. Social Science and Medicine. 2009;69(10):1506–1514. doi: 10.1016/j.socscimed.2009.08.003. [DOI] [PubMed] [Google Scholar]
- Morris M, Kretzschmar M. A microsimulation study of the effect of concurrent partnerships on the spread of HIV in Uganda. Mathematical Population Studies. 2000;8(2):109–133. [Google Scholar]
- Morris M, Kurth AE, Hamilton DT, Moody J, Wakefield S. Concurrent partnerships and HIV prevalence disparities by race: Linking science and public health practice. American Journal of Public Health. 2009;99:1023–1031. doi: 10.2105/AJPH.2008.147835. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Prejean J, Song R, Hernandez A, Ziebell R, Green T, Walker F, Lin LS, An Q, Mermin J, Lansky A, Hall HI, HIV Incidence Surveillance Group Estimated HIV incidence in the United States, 2006-?2009. PLoS ONE. 2011;6(8):e17502. doi: 10.1371/journal.pone.0017502. [DOI] [PMC free article] [PubMed] [Google Scholar]
- R Development Core Team . R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing; Vienna, Austria: 2011. ISBN 3-900051-07-0. [Google Scholar]
- Robins G, Morris M. Advances in exponential random graph (p*) models. Social Networks. 2007;29(2):169–172. doi: 10.1016/j.socnet.2006.08.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Robins G, Pattison P. Random graph models for temporal processes in social networks. Journal of Mathematical Sociology. 2001;25(1):5–41. [Google Scholar]
- Robins G, Snijders T, Wang P, Handcock M, Pattison P. Recent developments in exponential random graph (p*) models for social networks. Social Networks. 2007;29(2):192–215. [Google Scholar]
- Runger G, Wasserman S. Longitudinal analysis of friendship networks. Social Networks. 1980;2(2):143–154. [Google Scholar]
- Sasovova Z, Mehra A, Borgatti SR, Schippers MC. Network churn: The effects of self-monitoring personality on brokerage dynamics. Administrative Science Quarterly. 2010;55(4):639–670. [Google Scholar]
- Snijders T, Koskinen J. Longitudinal models. In: Lusher D, Koskinen J, Robins G, editors. Exponential Random Graph Models for Social Networks. Cambridge University Press; Cambridge: 2013. pp. 130–140. [Google Scholar]
- Snijders TA. The statistical evaluation of social network dynamics. Sociological Methodology. 2001;31(1):361–395. [Google Scholar]
- Snijders TA, Pattison PE, Robins GL, Handcock MS. New specifications for exponential random graph models. Sociological Methodology. 2006;36(1):99–153. [Google Scholar]
- Snijders TA, Steglich C, Schweinberger M. Modeling the co-evolution of networks and behavior. In: Van Montfort K, Oud H, Satorra A, editors. Longitudinal models in the behavioral and related sciences. Lawrence Erlbaum; Mahwah, NJ: 2007. pp. 41–71. [Google Scholar]
- Strauss D, Ikeda M. Pseudolikelihood estimation for social networks. Journal of the American Statistical Association. 1990;85(409):204–212. [Google Scholar]
- Wasserman S. Analyzing social networks as stochastic processes. Journal of the American Statistical Association. 1980;75(370):280–294. [Google Scholar]
- Wasserman S, Pattison P. Logit models and logistic regressions for social networks. I. An introduction to Markov graphs and p*. Psychometrika. 1996;60:401–425. [Google Scholar]
- Weerman FM. Delinquent peers in context: A longitudinal network analysis of selection and influence effects. Criminology. 2011;49(1):253–286. [Google Scholar]