Learn R Programming

binomialMix (version 1.0.1)

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

Description

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

Usage

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

Run this code
# NOT RUN {
init_tau(adcampaign,3,"id")
# }

Run the code above in your browser using DataLab