[R] knn

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Oct 11 12:14:15 CEST 2005


Please do read the posting guide and supply a reproducible example as it 
asks.  Here it matters critically what you mean by `fix l' (to what 
value?).

Is this knn in package class?  Have you read the help page?  Have you read 
the references (especially the first)?

On Tue, 11 Oct 2005, Haleh Yasrebi wrote:

> Why do I get doubt (NA) in the factor of test
> classification even if I fix l (minimum vote)? By
> setting l, no doubt should be occurred.

That is completely opposite to what the help page for knn in package class 
says happens, so why do you think so?

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list