clustering | R Documentation |
Performs energy clustering with Wasserstein distance using quantile distributional representations as covariates.
clustering(data, clusters=3, iter_max=10, restarts=1)
data |
A biosensor object. |
clusters |
Number of clusters. |
iter_max |
Maximum number of iterations. |
restarts |
Number of restarts. |
An object of class bclustering:
data
A data frame with biosensor raw data.
result
A kgroups object (see energy library).
# Data extracted from the paper: Hall, H., Perelman, D., Breschi, A., Limcaoco, P., Kellogg, R., # McLaughlin, T., Snyder, M., Glucotypes reveal new patterns of glucose dysregulation, PLoS # biology 16(7), 2018. file1 = system.file("extdata", "data_1.csv", package = "biosensors.usc") file2 = system.file("extdata", "variables_1.csv", package = "biosensors.usc") data = load_data(file1, file2) clus = clustering(data, clusters=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.