FitBothMandC function

Fit Matching-Centrality Model

Fit Matching-Centrality Model

Fit a model that contains both a trait-matching and a centrality term based on Rohr et al. (2016)

FitBothMandC( list, N_runs = 10, maxit = 10000, method = "Nelder-Mead", ExtraSettings = NULL )

Arguments

  • list: Network List
  • N_runs: Number of different start points for k2 and lambda to try. The best (maximum likelihood) half will be used to construct the probability matrix
  • maxit: Default = 10'000
  • method: Passed to optim, default = 'Nelder-Mead'
  • ExtraSettings: Other control settings to pass to optim()

Returns

Network list with added 'B_par',the best fitting parameters, 'M_ProbsMatrix', the probability matrix

References

Rohr, R.P., Naisbit, R.E., Mazza, C. & Bersier, L.-F. (2016). Matching-centrality decomposition and the forecasting of new links in networks. Proc. R. Soc. B Biol. Sci., 283, 20152702

  • Maintainer: Chris Terry
  • License: GPL-3
  • Last published: 2024-06-10

Useful links