problem in knn {EMV}
0
0
Entering edit mode
@alice-le-bars-1153
Last seen 10.2 years ago
Dear all, I have a problem with the knn's function in EMV package. When I try to do like the example given in help Html it works, but with my own matrix, R returns the following message : > library (EMV) > temp [1:3, 1:10] V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 3 -0.03 -0.29 0.12 -0.05 -0.12 0.02 -0.17 0.09 0.29 -0.04 4 -0.25 -0.36 -0.29 -0.21 -0.15 -0.15 NA -0.13 0.16 -0.09 6 -0.40 -0.37 -0.39 NA -0.13 -0.22 0.01 -0.15 -0.22 NA > matcomplete <- knn(temp,k=15) Error in knn(temp, k = 15) : No rows without missing values My matrix has actually 14% of NA, which are recognized by R as NA (summary function). My matrix (temp) is in a numeric mode and has dimension of 3169*160 Is anybody has the same problem or knows a solution? Thanks. Alice.
• 921 views
ADD COMMENT

Login before adding your answer.

Traffic: 571 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6