orderClu {blockmodeling}R Documentation

Orders the partition so that mean values of fun applied to columns (if funWay=2, default), rows (if funWay=1) or both (if funWay=c(1,2)) is decreasing by clusters.

Description

Orders the partition so that mean values of fun applied to columns (if funWay=2, default), rows (if funWay=1) or both (if funWay=c(1,2)) is decreasing by clusters. The function can be used on the results of critFunC, optRandomParC or similar, or matrix and a partition can be supplied. It should also work on multirelational and lined networks.

Usage

orderClu(
  x,
  clu = NULL,
  fun = sum,
  funWay = 2,
  nn = NULL,
  returnList = TRUE,
  scale = TRUE
)

Arguments

x

A result of critFunC, optRandomParC or similar (something containing M (matrix) and clu (partition)) or a matrix (or array for multirelational networks).

clu

A partition - a vector or a list of vectors/partitions. It must be supplied only if x is a matrix or array.

fun

A function used to summarize rows or columns. sum by default.

funWay

In which "way" should fun be appluied - to columns (if funWay=2, default), rows (if funWay=1) or both (if funWay=c(1,2))

nn

The numbers of untis by sets of units. In principle, the function should determin this automatically.

returnList

Logical. Should the partition be returned in form of a list (for lined networks only). TRUE by default.

scale

Only used in case of multirelational networks. Should relations be scaled (TRUE by default) before summation. It can also be a vector of weights by relations.

Value

An ordered partition. In an attribute ("reorder"). the information on how things were reordered.

See Also

clu


[Package blockmodeling version 1.0.5 Index]