View source: R/revolver_cluster.R
revolver_cluster | R Documentation |
Compute hierarchical clustering for a REVOLVER cohort with fit models.
To compute clusters first a pairwise distance is computed between
the patients, then the cluster
package is used to compute a
dendrogram of the patients, and is split using the heuristic dendrogram-cutting
functions available in the dynamicTreeCut
package. This function accepts
parameters that are forwarded to the functions to carry out this task.
Results are stored inside the field cluster
of the returned object.
revolver_cluster( x, patients = x$patients, hc.method = "ward", split.method = "cutreeHybrid", min.group.size = 2 )
x |
A |
hc.method |
Method for hierarchial clustering, anything that can be
passed to the |
split.method |
Method to cut the dendrogram, anything of
|
min.group.size |
Minimum group size for |
The input x
with a modified field cluster
that
stores all relevant clustering results.
Other Analysis functions:
revolver_fit()
data(CRC.cohort) fit = revolver_fit(CRC.cohort) fit = revolver_evo_distance(fit) fit = revolver_cluster(fit) # dumped also to disk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.