MAP_cluster: return the maximum-a-posteriori cluster label for an...

Description Usage Arguments Value

Description

return the maximum-a-posteriori cluster label for an individual given K and rep

Usage

1

Arguments

df

long-format data frame like that which comes out of read_results. Minimally it should have the columns K, rep, Index, cluster, and probability.

Value

a summarised data frame with the column map_cluster in place of cluster.


eriqande/Rrunstruct documentation built on May 16, 2019, 8:44 a.m.