R黛西·高尔(R Daisy Gower)相似之处:为单次观察而不是成对计算

时间:2018-07-03 15:56:59

标签: r r-daisy

与完整的成对分析相反,我想针对多个(400k +)观测值针对1个观测值计算Gower相似度。原因是我对新观察与现有示例的相似程度感兴趣,以便找到相似的历史案例。

data(agriculture)

#This is a pairwise analysis
agriculture_data = agriculture[2:12,]
dagr = daisy(agriculture_data, metric = "gower", stand = FALSE)

#How can I do a single vs many analysis?
agriculture_newobs = agriculture[1,]
dagr_newobs = daisy(???)

0 个答案:

没有答案