powered by
Initialize the matrix probability of each levels id to be in the clusters
init_tau(df, K, col_id = "id")
A dataframe
The number of dataframe to obtain depending on the number of cluster chosen for the mixture
A character value corresponding to id column name
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
# NOT RUN { init_tau(adcampaign,3,"id") # }
Run the code above in your browser using DataLab