randomGraphs: Create random data based off of observed data

Description Usage Arguments Value

Description

Implements a method described by Manly (1995) to generate random datasets based on observed data. Random datasets preserve the marginal distributions (both row and column) of the original data.

Usage

1
randomGraphs(x, n = 1000, symmetric = TRUE)

Arguments

x

a m x n matrix of observatinos by entities.

n

the number of random graphs to generate. Default is 1000, however the proper number of random graphs to generate will depend on the size and sparseness of x @param symmetric should the association rates calculated by symmetric?

Value

A list containing three objects:

g

A list of length n containing all the random m x n matrices

a

A list of length n containing all the association matrices generated from g above

expected

A n x n matrix containing the average association index from the graphs in a


thom82/whassocr documentation built on May 31, 2019, 10:46 a.m.