Learn R Programming

bingat (version 1.3)

rGibbs: Generate Random Data

Description

Generate random data sampled from the Gibbs distribution.

Usage

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.

Examples

Run this code
	data(braingraphs)
	
	braingstar <- estGStar(braingraphs)
	braintau <- estTau(braingraphs, "adjMatrix", braingstar)
	randombraingraphs <- rGibbs(braingstar, braintau, "adjMatrix", 3) 
	randombraingraphs[1:5,]

Run the code above in your browser using DataLab