Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cluster.index

Finds subjects related to same cluster


Description

Finds subjects related to same cluster

Usage

cluster.index(
  clusters,
  index.type = FALSE,
  num = NULL,
  Rindex = 0,
  mat = NULL,
  return.all = FALSE,
  code.na = NA
)

Arguments

clusters

list of indeces

index.type

if TRUE then already list of integers of index.type

num

to get numbering according to num-type in separate columns

Rindex

index starts with 1, in C is it is 0

mat

to return matrix of indeces

return.all

return all arguments

code.na

how to code missing values

Author(s)

Klaus Holst, Thomas Scheike

References

Cluster indeces

See Also

familycluster.index familyclusterWithProbands.index

Examples

i<-c(1,1,2,2,1,3)
d<- cluster.index(i)
print(d)

type<-c("m","f","m","c","c","c")
d<- cluster.index(i,num=type,Rindex=1)
print(d)

mets

Analysis of Multivariate Event Times

v1.2.8.1
GPL (>= 2)
Authors
Klaus K. Holst [aut, cre], Thomas Scheike [aut]
Initial release
2020-09-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.