Learn R Programming

bingat (version 1.2.2)

getGibbsMixture: Group Splitter

Description

This function splits the data into groups based on the Gibbs criteria.

Usage

getGibbsMixture(data, type, desiredGroups, maxIter = 50, digits = 3)

Arguments

data

A data frame in which the columns (subjects) contain a 0/1 value for row (Node or Edge).

type

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

desiredGroups

The number of groups to test for.

maxIter

The maximum number of iterations to run searching for an optimal split.

digits

The number of digits to round internal values to when checking the stop criteria.

Value

A list that contains information about the group splits. The list contains the final weights, gstars and taus for every group, a boolean indicating convergence, the number of iterations it took, and the group for each graph.

Details

Generally this function is not used by itself but in conjunction with getLoglikeMixture.

Examples

Run this code
	data(braingraphs)

	braingm <- getGibbsMixture(braingraphs, "adjMatrix", 5) 

Run the code above in your browser using DataLab