I'm sorry, I have a data set contains numbers with more decimal places, the data are available in R "data (milk)". I made a loop to get a robust correlation matrix but in calculations, decimals cause me problems ( especially I do not know how R rounds numbers by default) so the diagonal should be equal to one is not.
I hope it's clearer. -- View this message in context: http://r.789695.n4.nabble.com/How-to-menage-decimals-in-order-to-obtain-accurate-estimates-tp4657659p4657681.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.