hydrogof

How to perform RMSE with missing values?

瘦欲@ 提交于 2020-01-13 07:55:07
问题 I have a huge dataset with 679 rows and 16 columns with 30 % of missing values. So I decided to impute this missing values with the function impute.knn from the package impute and I got a dataset with 679 rows and 16 columns but without the missing values. But now I want to check the accuracy using the RMSE and I tried 2 options: load the package hydroGOF and apply the rmse function sqrt(mean (obs-sim)^2), na.rm=TRUE) In two situations I have the error: errors in sim .obs: non numeric