Learn R Programming

binomialMix (version 1.0.1)

update_z: M-step : Update the matrix of working variables Z from beta iterative equation

Description

M-step : Update the matrix of working variables Z from beta iterative equation

Usage

update_z(df, col_id = "id", target, beta_up, df_id, matrix_id)

Arguments

df

A dataframe

col_id

A character value corresponding to id column name

target

A character value corresponding to the target variable

beta_up

A matrix of estimated beta in a specific cluster k

df_id

A list of dataframe filter by id levels

matrix_id

A list of design matrices filter by id levels

Value

work_z An up-to-date matrix of working variables Z