init_tau: Initialize the matrix probability of each levels id to be in...

Description Usage Arguments Value Examples

View source: R/init_tau.R

Description

Initialize the matrix probability of each levels id to be in the clusters

Usage

1
init_tau(df, K, col_id = "id")

Arguments

df

A dataframe

K

The number of dataframe to obtain depending on the number of cluster chosen for the mixture

col_id

A character value corresponding to id column name

Value

result_matrix A matrix of dimension : rows number is the number of cluster K, columns number is the number of distinct levels from id column

Examples

1

binomialMix documentation built on March 23, 2020, 5:09 p.m.