cluster_membership {basket} | R Documentation |
Cluster Baskets Based on the Posterior Exchangeabilities
Description
This is the default function used to cluster cohorts in the
basket
, mem_mcmc
, and mem_exact
functions.
The approach creates a graph where each vertex is a cohort and the
weight between two cohorts is determined by their posterior exchangeability
probability. The graph is then clustered using igraph's
louvain
function, which determines the number of clusters and
the cluster memberships, and has been shown to perform well with
real clinical data.
Usage
cluster_membership(m)
Arguments
m |
the adjacency matrix. |
Value
A factor variable with cluster memberships for each cohort in the study.
See Also
basket mem_mcmc mem_exact
[Package basket version 0.10.11 Index]