It depends on what you are trying to do and what kind of data you are using. If you are using Euclidian distance and your variables have different means and standard deviations, the answer is probably yes. That will weight each variable equally. Without standardization the variables with the larger magnitudes will determine the groups more than the variables with the smaller magnitudes.
David L. Carlson Department of Anthropology Texas A&M University -----Original Message----- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jeff Reichman Sent: Thursday, June 21, 2018 11:36 AM To: R-help@r-project.org Subject: [R] KNN R-Help Does one need to normalize ones data is using the knn function within the caret Library. Jeff [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.