Skip to contents

Getting started

Start here for a first analysis and the data format used by bisonR.

Getting started

A first analysis: fitting an edge weight model, checking it, plotting the network, and using it in regressions and network metrics.

Preparing your data

The data format used by bisonR: events and observation effort, aggregation, directed data, unobserved dyads and group-by-individual matrices.

Fitting models

Priors, diagnostics and additional effects in edge weight models.

Choosing and checking priors

What each prior controls, the link scales, and checking priors with prior_check() and prior predictive checks.

Model diagnostics

MCMC diagnostics and posterior predictive checks, with a worked example of excess zeros.

Edge models with additional effects

Fixed effects, random effects and partial pooling in edge weight models, and how they change the interpretation of edge weights.

Types of data

Worked analyses for directed networks, group-based observations and count data.

Directed networks

Fitting, plotting and analysing directed networks, including in- and out-strength and dyadic regression.

Group-based observations

Gambit-of-the-group data: converting group-by-individual matrices, group-level effects and pairs that could not have been seen together.

Count data and continuous observation effort

Counts of interactions with continuous observation time, such as focal follows, and the interpretation of edge weights as rates.

Analyses

Network metrics, regression, comparing networks, mixture models and working with posterior networks.

Network metrics

Definitions of the node, edge and global metrics available in bisonR, and how to extract their posterior distributions.

Regression with brms

Dyadic, nodal and global regressions with bison_brm(), including formula syntax, scaling and priors.

Nodal regression

A worked nodal regression relating an individual trait to centrality, with the metric as response or predictor.

Comparing networks

Comparing two or more networks using global metrics, global regressions and edges present in both networks.

Edge mixture models

Looking for different types of social relationship with edge mixture models.

Working with posterior networks

Using posterior draws directly: igraph networks, metrics not provided by bisonR, community detection, edge contrasts and saving models.

Help

Installing cmdstanr on Windows

Solutions to common problems when installing cmdstanr and CmdStan on Windows.