update_tau: E-step : update of tau

Description Usage Arguments Value

View source: R/update_tau.R

Description

E-step : update of tau

Usage

1
2
update_tau(df, K, col_id = "id", beta_hk, lambda, m, df_id, n_c,
  matrix_id, var_weights, target)

Arguments

df

A dataframe

K

The numeric value of the total number of clusters

col_id

A character value corresponding to id column name

beta_hk

A matrix of estimated beta

lambda

A numeric vector of proportion into the different clusters

m

A numeric iterative value

df_id

A list of dataframe filter by id levels

n_c

A numeric vector containing the number of rows for each distinct id levels

matrix_id

A list of design matrices filter by id levels

var_weights

A character value corresponding to the weights variable

target

A character value corresponding to the target variable

Value

result_pi Estimated probabilities of tau matrix


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