Learn R Programming

fossil (version 0.4.0)

rclust.null: Relational Clustering

Description

A Monte Carlo method for calculating a null/random clustering solution based on the type and arrangement of a known clustering solution.

Usage

rclust.null(groups, dist)

Arguments

groups

cluster identity vector

dist

original pairwise distance matrix

Value

A matrix equal in rows to the number of clusters originally given, with two columns for mean within group distance and standard deviation respectively.

Details

This function calculates a random/null clustering solution based on a given solution. It resamples the data and reassigns samples to groups, keeping the same group sizes.

See Also

To cluster the data, use the function rclust; see as well rclust.weights, rclust.dist

Examples

Run this code
# NOT RUN {
#a null solution for the fdata example data set
data(fdata.mat)
fd.dist <- dino.dist(fdata.mat)
fd.clust <- rclust(fd.dist, 2)
rclust.null(fd.clust, fd.dist)
# }

Run the code above in your browser using DataLab