PAFit-package: Joint Inference of Preferential Attachment and Node Fitness...

Description Details Author(s) References Examples


An implementation of a framework for modelling and inferencing the attachment mechanisms of temporal complex networks. For estimating the preferential attachment (PA) function in isolation, we implement Jeong's method, the corrected Newman's method and the PAFit method. For jointly estimating the PA function and node fitnesses, we implement the PAFit method. The package also provides flexible methods to generate a wide range of temporal networks based on PA and fitness. See the accompanying vignette for a tutorial. For a list of references, please run the command: citation("PAFit").


Package: PAFit
Type: Package
Version: 0.9.6
Date: 2017-02-02
License: GPL-3

The main functions are:

  • GenerateNet: generates networks based on the preferential attachment and fitness mechanisms.

  • GetStatistics: summarizes a matrix of edges into summary statistics ready for estimating the preferential attachment function or node fitness.

  • Jeong: estimates the preferential attachment in isolation by Jeong's method

  • Newman_corrected: estimates the preferential attachment in isolation by the corrected Newman's method

  • PAFit: jointly estimates the preferential attachment function and node fitness

  • CreateDataCV: creates cross-validation for performCV function

  • performCV: performs cross-validation for selecting regularization parameters of PAFit


Thong Pham, Paul Sheridan, Hidetoshi Shimodaira. Maintainer: Thong Pham


1. Pham, T., Sheridan, P. & Shimodaira, H. (2016). Nonparametric Estimation of the Preferential Attachment Function in Complex Networks: Evidence of Deviations from Log Linearity, Proceedings of ECCS 2014, 141-153 (Springer International Publishing) (

2. Pham, T., Sheridan, P. & Shimodaira, H. (2015). PAFit: A Statistical Method for Measuring Preferential Attachment in Temporal Complex Networks. PLoS ONE 10(9): e0137796. doi:10.1371/journal.pone.0137796 (

3. Pham, T., Sheridan, P. & Shimodaira, H. (2016). Joint Estimation of Preferential Attachment and Node Fitness in Growing Complex Networks. Scientific Reports 6, Article number: 32558. doi:10.1038/srep32558 (


net        <- GenerateNet(N = 50,m = 1,alpha = 1, mode = 1, shape = 10, rate = 10)
net_stats  <- GetStatistics(net$graph)
result     <- PAFit(net_stats)

Search within the PAFit package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.