Learn R Programming

SNscan (version 1.0)

network.mc.scan: Monte Carlo scan statistic in social network

Description

Evaluate scan statistics based on Monte Carlo data.

Usage

network.mc.scan(n, g, radius, attribute, model, pattern, fix.edge= FALSE, max.prop = 0.5, xmin = NULL, zetatable =NULL)

Arguments

n
The size of the generated Monte Carlo data.
g
An igraph object.
radius
The radius of scanning windows. Default is 3.
attribute
The interested attribute which should be a data list including observations (obs) and population (pop).
model
The distribution of attribute which can be "norm.stat", "pois.stat", "binom.stat", and "multinom.stat".
pattern
The testing pattern of the network which can be "structure", "attribute", and "both".
fix.edge
Logical term: TRUE for generating fixed number of edges; FALSE for random number of edges. Default is FALSE.
max.prop
Numeric value, the maximum proportion of selecting graph. Default is 0.5.
xmin
Numeric value, the minimum value only for powerlaw stat. Default is 1.
zetatable
Zatatable is applied when power-law distribution is used. Default is NULL.

Value

A matrix will be returned. Each meaning of the row is equal to to network.scan. The test statistic in network.mc.scan is maximum in each Monte Carlo sample.

Details

All arguments should be exactly the same as the set applied in network.scan.

See Also

network.scan;graph.rmedge

Examples

Run this code
#Please refer to the page of network.scan.

Run the code above in your browser using DataLab