prepareData function

lcMethod estimation step: logic for preparing the training data