Learn R Programming

mcPAFit (version 0.1.4)

estimate_alpha: Estimating the attachment exponent of preferential attachment

Description

This function estimate the attachment exponent of preferential attachment.

Usage

estimate_alpha(net, net_type = "directed")

Arguments

net

A three-column matrix containing the network. Each row is an edge.

net_type

String. Indicates the type of the network. Possible values are "directed" or "undirected".

Value

A list containing the estimated attachment exponenet and its standard deviation.

References

1. Pham, T. and Sheridan, P. and Shimodaira, H. (2015). mcPAFit: Nonparametric Measurement of Preferential Attachment and Fitness from a Single Network Snapshot. Conference on Complex Systems 2015, September 2015, Arizona.

Examples

Run this code
library("mcPAFit")
data   <- simple_net(100)
result <- estimate_alpha(data)

Run the code above in your browser using DataLab