Hello Thank you so much for the answers. I truly appreciate a lot. For many reasons, I have not been able to work on this project until now. When a few weeks ago I was running the code on the "training" dataset, I wrote that it worked. In a way it did. However, even back then I had noticed a problem there that I bypassed, since in that "training" dataset it was still giving the desired results. The problem was that "all5" was not being created, but instead "all4" was being copied, and from it some of the observations were eliminated, as desired. Apparently while in the "training" dataset this did not in the end create real problem since the desired results were achieved, in the real dataset this problem blocks the program from running. In order to explain in detail this point I am including an attachment, with all the steps described in detail, including the results. Please see attached document (seems long, but it is really not, it is so just because I included also the results as Tables). Thank you so very much
... View more