stabilitas: Extract the stability results of individuals from the output...

Description Usage Arguments Value Examples

View source: R/stabilitas.R

Description

Those individuals whose samples are clustered under the same label in list[[x]]$cluster sum 1. If samples are in different clusters sum 0. Then, this is done for all possible values of k and, finally, divided the sum by k, so obtaining a value between 0 and 1.

Usage

1
stabilitas(klist, common)

Arguments

klist

input list corresponding to the output of iterative_clustering().

common

pattern that separates the ID and the sampling time.

Value

µSTASIS stability score (mS) for the individuals from the two selected sampling times.

Examples

1
2
3
4
t1_t2 <- paired_times(data = clr[,1:50], first = "_1",
                      second = "_25", common = "_0_")
klist_t1_t2 <- iterative_clustering(data = t1_t2, parallel = FALSE)
result_t1_t2 <- stabilitas(klist_t1_t2, common = "_0_")

microSTASIS documentation built on Sept. 14, 2021, 9:07 a.m.