PAFit_oneshot: Estimating the nonparametric preferential attachment function...

Description Usage Arguments Value Author(s) References Examples

View source: R/PAFit_oneshot.R

Description

This function estimates the attachment function A_k from one snapshot.

Usage

1
2
3
4
5
PAFit_oneshot(net_object, 
              M    = 10,
              S    = 5,
              loop = 5,
              G    = 1000)

Arguments

net_object

an object of class PAFit_net that contains the network. Any time-step information, if available, will be ignored.

M

Integer. Number of simulated networks in each iteration. Default is 10.

S

Integer. Number of iterations inside each loop. Default is 5.

loop

Integer. Number of loops of the whole process. Default is 5.

G

Integer. Number of bins for the PA function. Default is 1000.

Value

Outputs a PAFit_result object.

Author(s)

Thong Pham thongphamthe@gmail.com

References

1. Pham, T., Sheridan, P. & Shimodaira, H. (2021). Non-parametric estimation of the preferential attachment function from one network snapshot. Journal of Complex Networks 9(5): cnab024. (doi: 10.1093/comnet/cnab024).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
  library("PAFit")
  net_1    <- generate_BA(N = 10000, alpha = 1) # true attachment exponent = 1.0
  result_1 <- PAFit_oneshot(net_1)
  print(result_1)

  
  net_2    <- generate_BA(N = 10000, alpha = 0.5) # true attachment exponent = 0.5
  result_2 <- PAFit_oneshot(net_2)
  print(result_2)
  
## End(Not run)

PAFit documentation built on Jan. 18, 2022, 1:10 a.m.