Mobility Network Analysis
Overview
Implements the method to analyse weighted mobility networks or distribution networks as outlined in: Block, P., Stadtfeld, C., & Robins, G. (2022) doi:10.1016/j.socnet.2021.08.003. The purpose of the model is to analyse the structure of mobility, incorporating exogenous predictors pertaining to individuals and locations known from classical mobility analyses, as well as modelling emergent mobility patterns akin to structural patterns known from the statistical analysis of social networks. Version 2 runs the simulations in 'C++' (using 'Rcpp') and, besides stochastic approximation (Robbins-Monro), can estimate parameters with Geyer-Thompson MCMC maximum likelihood estimation.
Bug fixes
- The tests comparing C++ and R effects allow rounding differences on R built without
long double(CRAN's "noLD" check), where R sums in double precision; elsewhere they still require identical values.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 88 (65 internal)includes a package overview page
- Examples that run
- 71%15 run in a plain check · 5 only when donttest examples are enabled (R CMD check --as-cran) · 1 hold no code
- Exported functions with examples
- 25%
- Documented parameters
- 26%
- Return-value docs
- 100%
- Help pages citing references
- 1%
Downloads
Repository
- PRs merged (all time)
- 97%
- Median days to close, 50 most recently updated closed issues
- 5
- Median days to close, 50 most recently updated closed PRs
- 0
Repository github.com/stocnet/monan is linked, but repository-practices checks have not run for it yet.
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 2.1.1Latest2026-10-12 · current release · diff ↗ ·
added 5 exports
concentration_rankGW, concentration_basic_squared, concentration_norm, concentration_norm_squared, concentration_prop_orig_cov - 2.0.02026-10-11 · diff ↗ ·
removed 6 exports
concentration_prop_orig_cov, concentration_rankGW, concentration_basic_squared, concentration_norm, concentration_norm_squared, in_weights_exponent·added 5 exports
addFixedEffects, addDummyEffects, concentration_basic_cube, concentration_prop_AC, concentration_maxlisted once in CRAN's queue
Seen in one reading of CRAN's incoming queue, at 2026-10-11 13:40 UTC, so it stayed less than the time between readings. - RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.1.02024-09-12 · diff ↗ ·
added 9 exports
loops_AC, concentration_AC, concentration_AC_dyad_covar, concentration_AC_resource_covar_bin, reciprocity_AC, reciprocity_AC_dyad_covar_bin, reciprocity_AC_dyad_covar, transitivity_AC, in_weights_AC - 1.0.02024-04-25 · diff ↗ ·
added 23 exports
monanAlgorithmCreate, monanDependent, createEffects, addEffect, dyadicCovar, monanNodes, monanEdges, monadicCovar, monanDataCreate, monan07, monanEstimate, monanSimulate, monanGOF, print.processState.monan, print.effectsList.monan, concentration_GW_resource_covar_bin, concentration_basic_squared, concentration_norm, concentration_norm_squared, joining_similar_avoiding_dissimilar_covar_bin, joining_similar_avoiding_dissimilar_covar_cont, avoiding_dissimilar_covar_bin, avoiding_dissimilar_covar_cont - RR 4.4.0 released · 2024-04-24
- 0.1.32024-02-05 · diff ↗ ·
removed 1 export
concentration_GW_dyad_covar_binadded 16 exports
target_change_match, test_effect, loops_additional_origin, loops_x_loops_additional_origin, concentration_GW_dyad_covar, concentration_prop, concentration_prop_orig_cov, concentration_rankGW, reciprocity_min_dyad_covar, reciprocity_GW_dyad_covar, transitivity_basic, transitivity_GW, triad120D, triad120U, triad120C, in_weights_GW - 0.1.22023-08-29
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-08-29
- Total releases
- 6 / 3 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.2
- Bundled data
- 577 KB / 9 files
- Download size
- 2.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MoNAn")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.