This project is a joint collaboration between the Social Networks Lab at ETH Zürich and the Graduate Institute Geneva, and incorporates and supports several sub-projects.
The objective of the project is to introduce, extend, and promote the Dynamic Network Actor-Oriented Model (DyNAM) for the statistical analysis of coordination networks through time. The chief advantage of the model is that it explicitly addresses five common features of data found in political science, sociology, and other social scientific disciplines:
- observations are dependent,
- ties reflect the opportunities and preferences of both actors involved,
- that the creation of coordination ties is a two-sided process,
- that data might be available in a time-stamped format, and
- that processes typically differ between tie creation and dissolution (valence of ties), between different time windows (salience of ties), and between initial and repeated creation of ties (multiplicity of ties).
You can install the latest version of the goldfish
package from source using remotes
:
remotes::install_github("snlab-ch/goldfish")
Or by downloading and install the latest binary from the releases page.
In some cases, you may get an error that does not allow installation of goldfish
from source on Mac OSX versions, including under R 4.0.0.
The error may relate to compiling the parts of goldfish
that are written in C++,
or whether OpenMP (for parallelisation) can be found.
Many installation woes can be solved by directing R to use Homebrew installed gcc
.
Once you have installed gcc
using Homebrew in the Terminal,
you will need to update your /Library/Frameworks/R.framework/Resources/etc/Makeconf
file like so:
# Use Homebrew gcc for OpenMP support
CC = gcc-8
# CC = clang # Original setting
...
# Use Homebrew gcc for OpenMP support
CXX = g++-8
# CXX = clang++ # Original setting
...
# Ask R to find the Homebrew copy of gcc
FLIBS = -L/usr/local/lib/gcc/8/gcc/x86_64-apple-darwin17.5.0/8.1.0 -L/usr/local/lib/gcc/8 -lgfortran -lquadmath -lm
# The original one
# FLIBS = -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm
More details can be found here.^[Thank you @Knieps for identifying this.] Other links that may be helpful include:
- https://asieira.github.io/using-openmp-with-r-packages-in-os-x.html
- https://thecoatlessprofessor.com/programming/openmp-in-r-on-os-x/
- https://ryanhomer.github.io/posts/build-openmp-macos-catalina-complete
Please share feedback on which of these work and we will update the installation guide accordingly.