rGibbs: Generate Random Data

Description Usage Arguments Value Author(s) Examples

View source: R/rGibbs.R

Description

Generate random data sampled from the Gibbs distribution.

Usage

1
rGibbs(gstar, tau, type, numGraphs = 1)

Arguments

gstar

G star vector.

tau

A single value that affects the dispersion of the generated data.

type

The type of graph being used (adjmatrix or adjmatrixlt).

numGraphs

The number of graphs to generate.

Value

A data frame containing all the graphs generated.

Author(s)

Terrence Brooks, Berkley Shands, Skye Buckner-Petty, Patricio S. La Rosa, Elena Deych, William D. Shannon

Examples

1
2
3
4
5
6
	data(braingraphs)
	
	braingstar <- estGStar(braingraphs)
	braintau <- estTau(braingraphs, "adjMatrix", braingstar)
	randombraingraphs <- rGibbs(braingstar, braintau, "adjMatrix", 3) 
	randombraingraphs[1:5,]

bingat documentation built on May 1, 2019, 9:11 p.m.