prepare_data_LMMsolver function

Process data to fit model with LMMsolver