S_Merge


In Steglich, C.E.G., Snijders, T.A.B. and Pearson, M. (2009): Dynamic Networks and Behavior: Separating Selection from Influence, one of the techniques used is the simulation of values of network autocorrelation statistics (Moran`s I and Geary`s c) using Siena05 according to hybrid models. This requires the composition of a new .mo file from two earlier existing .mo files. This can be done conveniently using the program S_Merge.

Here you can download the version of October 15, 2007. The documentation still must be integrated with the SIENA manual.

Operation of S_Merge.

S_Merge takes two .mo files and produces a new, hybrid, .mo file. The two .mo files should be for the same Siena project (i.e., refer to the same data sets) and for the same version of Siena (i.e., refer to the same set of effects). The new .mo file will have the specification and parameter values for network dynamics from the first .mo file, and the specification and parameter values for behavior dynamics from the second .mo file. The options are also taken from the second .mo file.

S_Merge is used by calling it as a Dos program.
Suppose that you are working with a Siena project called Networksbehavior. (Of course any name could be used.) The easiest way is to construct a batch file, e.g. called sme.bat, containing one single text line

S_Merge Networksbehavior.mo1 Networksbehavior.mo2 Networksbehavior.mox

where Networksbehavior.mo1 (with the networks specification) and Networksbehavior.mo2 (with the behavior specification) are the two existing files, and Networksbehavior.mox is the new file to be created.

Execute this batch file by double clicking on it. This will produce You can then rename, or copy, file Networksbehavior.mox to Networksbehavior.mo and use it for specifying the project Networksbehavior.

The zip file which can be downloaded above also includes an example batch file with two example .mo files. These are examples from the s50 data set, with alcohol consumption as the dependent behavioral variable. The file s50.moc is for a control model, where network and behavior evolve independently. The file s50.mof is for a co-evolution model, where network and behavior evolve in mutual dependence. Since the order given in the batch file is s50.mof s50.moc, the hybrid .mo file generated includes the selection effect (effect of alcohol use on friendship choice) but not the influence effect (effect of friend's use on ego's alcohol use).

(What S_Merge does is simply to copy everything from the first file until the first occurrence of a line starting with "@3", and to copy from the second file everything starting from the first occurrence of such a line.)


Back to the Siena page