Helpfunction in update_g(). Depends on an not yet established group k ( cannot use lgfg_list)
calculate_obj_for_g(i, k, errors_virtual, rho_parameters, robust, TT)numeric value
individual
group
list with errors for each possible group
median and madn of the calculated error term
robust or classical estimation
length of time series