Outlier detection using R along with score -


i working on sample dataset find outliers using r.

i followed link , read discussion on outlier: http://cran.r-project.org/doc/contrib/zhao_r_and_data_mining.pdf

i have used dmwr, outliers packages find outliers. trying find out anomalous or outlier score each event.

using lofactor:

outlier_score <- lofactor(dataset, k=5) print(outlier_score) outliers <- order(outlier_score, decreasing=t)[1:5] print(outlers) 

oultier_score gives score : nan nan nan inf nan

using outlier:

outlier_tf = outlier(dataset,logical=true) print(outlier_tf) find_outlier = which(outlier_tf==true,arr.ind=true) print(find_outlier) 

find_outlier gives score as: false false false true false

is there function or package available give anomalous or outlier score each event in numerical form, easy find out event has highest score.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -