[R] KNN

David L Carlson dc@r|@on @end|ng |rom t@mu@edu
Thu Jun 21 18:43:00 CEST 2018


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-bounces using r-project.org] On Behalf Of Jeff Reichman
Sent: Thursday, June 21, 2018 11:36 AM
To: R-help using 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 using 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.




More information about the R-help mailing list