groups: Group indices for explanatory variables

Description Usage Format Author(s) See Also Examples

Description

A vector of integers which assigns each variable (genotype marker) to a particular group. The clustering was performed via the R package BALD. This package uses linkage disequilibrium as a measure of proximity. In total, 98 groups are available. Group sizes vary from 1 to 23. The median of group sizes is equal to 3. For more details about the distribution of group sizes, please check out the example below.

Usage

1

Format

A vector consisting of 466 integer values.

Author(s)

Jan Klosa klosa@fbn-dummerstorf.de

See Also

plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(seagull_data)

## Create a vector with group sizes:
sizes <- rep(as.integer(NA), max(groups))
for (i in 1:98) {
  sizes[i] = max(which(groups==i)) - min(which(groups==i)) + 1
}

## Plot the sorted group sizes:
plot(x = seq(1, max(groups), 1), y = sort(sizes))

seagull documentation built on April 20, 2021, 5:06 p.m.