Thanks for the useful code which your wrote. I used your code for the part of my dissemination and I need to cite your work. Would you please send me the information that I can cite your code? You can send your email to firstname.lastname@example.org
I would like to thank you the author for the useful code which he developed. It solved many of my problems. The only problem which I faced was due to the singularity of Matrix X in line 76 and singularity of Matrix P * U * P' - (P * u)*(P*u)' in line 96. Do you have any suggestion to avoid singularity for these two matrices?