def process_data(data, dict_):
    """This function process the data for the optimization process"""
    indicator = dict_['ESTIMATION']['indicator']
    outcome = dict_['ESTIMATION']['dependent']
    D = data[indicator].values
    data1 = data[data[indicator] == 1]
    data2 = data[data[indicator] == 0]
    X1 = data1[dict_['TREATED']['order']].values
    X0 = data2[dict_['UNTREATED']['order']].values
    Z1 = data1[dict_['CHOICE']['order']].values
    Z0 = data2[dict_['CHOICE']['order']].values
    Y1 = data1[outcome].values
    Y0 = data2[outcome].values
    return D, X1, X0, Z1, Z0, Y1, Y0
