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

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Evaluate scan statistics based on Monte Carlo data.

Usage

1
2
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.

Details

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

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.

Author(s)

Taichi Wang <taichi43@stat.sinica.edu.tw>

See Also

network.scan;graph.rmedge

Examples

1
#Please refer to the page of network.scan.

taichi43/SNscan documentation built on May 31, 2019, 2:48 a.m.